Skip to content

Commit

Permalink
rtld: Reduce diff with upstream in allocate_tls
Browse files Browse the repository at this point in the history
Only copy over tls_static_space bytes from the old TLS block to the
new one.
  • Loading branch information
bsdjhb committed Jan 31, 2024
1 parent a016661 commit acf7950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/rtld-elf/rtld.c
Original file line number Diff line number Diff line change
Expand Up @@ -5767,7 +5767,7 @@ allocate_tls(Obj_Entry *objs, void *oldtcb, size_t tcbsize, size_t tcbalign)

if (oldtcb != NULL) {
memcpy(tls_block, get_tls_block_ptr(oldtcb, tcbsize),
tls_block_size);
tls_static_space);
free(get_tls_block_ptr(oldtcb, tcbsize));

/* Adjust the DTV. */
Expand Down

0 comments on commit acf7950

Please sign in to comment.