20e52bd2b8
bfd/ * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count for non-zero TLS symbol. (elf_i386_relocate_section): Don't resolve size relocation against non-zero TLS symbol. * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear pc_count for non-zero TLS symbol. (elf_x86_64_relocate_section): Don't resolve size relocation against non-zero TLS symbol. ld/testsuite/ * ld-size/size-10.rd: Updated. * ld-size/size-8.rd: Likewise. * ld-size/size32-2-i386.d: Likewise. * ld-size/size32-2-x32.d: Likewise. * ld-size/size32-2-x86-64.d: Likewise. * ld-size/size64-2-x32.d: Likewise. * ld-size/size64-2-x86-64.d: Likewise. * ld-size/size.exp (run_time_tests): Pass --hash-styl=gnu to linker for size-8 test.
20 lines
539 B
Makefile
20 lines
539 B
Makefile
#source: size32-2.s
|
|
#as: --64
|
|
#ld: -shared -melf_x86_64
|
|
#objdump: -R -s -j .data
|
|
#target: x86_64-*-*
|
|
|
|
.*: +file format .*
|
|
|
|
DYNAMIC RELOCATION RECORDS
|
|
OFFSET TYPE VALUE
|
|
0+2003d8 R_X86_64_SIZE32 xxx
|
|
0+2003dc R_X86_64_SIZE32 yyy
|
|
0+2003e0 R_X86_64_SIZE32 zzz
|
|
0+2003e4 R_X86_64_SIZE32 zzz-0x000000000000001e
|
|
0+2003e8 R_X86_64_SIZE32 zzz\+0x000000000000001e
|
|
|
|
|
|
Contents of section .data:
|
|
2003d8 00000000 00000000 00000000 00000000 ................
|
|
2003e8 00000000 ....
|