mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 23:03:29 +08:00
0e30d99180
We need to set tlsdesc_plt for x86-64 if GOT_TLS_GDESC_P is true when allocating dynamic relocations so that _bfd_x86_elf_size_dynamic_sections will generate TLSDESC_PLT and TLSDESC_GOT in x86-64 output. bfd/ PR ld/22071 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Set tlsdesc_plt for x86-64 if GOT_TLS_GDESC_P is true. ld/ PR ld/22071 * testsuite/ld-x86-64/pr22071.d: New file. * testsuite/ld-x86-64/pr22071.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run pr22071.
9 lines
108 B
Makefile
9 lines
108 B
Makefile
#as: --64
|
|
#ld: -melf_x86_64 -shared
|
|
#readelf: -d --wide
|
|
|
|
#...
|
|
.*\(TLSDESC_PLT\).*
|
|
.*\(TLSDESC_GOT\).*
|
|
#pass
|