3bea1fcb8b
bfd/ * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for non-zero TLS symbol. (elf_i386_relocate_section): Resolve size relocation against non-zero TLS symbol. * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count for non-zero TLS symbol. (elf_x86_64_relocate_section): 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.
18 lines
456 B
Makefile
18 lines
456 B
Makefile
#source: size32-2.s
|
|
#as: --x32
|
|
#ld: -shared -melf32_x86_64
|
|
#objdump: -R -s -j .data
|
|
#target: x86_64-*-*
|
|
|
|
.*: +file format .*
|
|
|
|
DYNAMIC RELOCATION RECORDS
|
|
OFFSET TYPE VALUE
|
|
0+200268 R_X86_64_SIZE32 zzz
|
|
0+20026c R_X86_64_SIZE32 zzz-0x0000001e
|
|
0+200270 R_X86_64_SIZE32 zzz\+0x0000001e
|
|
|
|
|
|
Contents of section .data:
|
|
200260 28000000 28000000 00000000 00000000 ................
|
|
200270 00000000 ....
|