[PATCH v4 2/2] x86: Update _dl_tlsdesc_dynamic to preserve caller-saved registers

Florian Weimer fweimer@redhat.com
Fri Feb 16 06:23:37 GMT 2024


* Adhemerval Zanella Netto:

>> diff --git a/elf/malloc-for-test.map b/elf/malloc-for-test.map
>> new file mode 100644
>> index 0000000000..8437cf4346
>> --- /dev/null
>> +++ b/elf/malloc-for-test.map
>> @@ -0,0 +1,6 @@
>> +GLIBC_2.0 {
>
> You need to use the correct version to override the malloc:
>
> $ gdb --args tst-gnu2-tls2 --direct
> [...]
> (gdb) b apply_tls
> (gdb) r
> Thread 2 "tst-gnu2-tls2" hit Breakpoint 1, apply_tls (p=0x7ffff7bfee80) at tst-gnu2-tls2mod1.c:25
> 25 {
> (gdb) b malloc
> Breakpoint 2 at 0x7ffff7ca8ad0: malloc. (3 locations)
> (gdb) c
> Continuing.

Why do we need to set a symbol version here?  I think this can be
removed.

Thanks,
Florian



More information about the Libc-alpha mailing list