old-cross-binutils/ld/testsuite/ld-size/size64-2-x86-64.d
H.J. Lu 3bea1fcb8b Resolve size relocation against non-zero TLS symbol
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.
2013-01-18 22:50:30 +00:00

19 lines
539 B
Makefile

#source: size64-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+2003b8 R_X86_64_SIZE64 zzz
0+2003c0 R_X86_64_SIZE64 zzz-0x000000000000001e
0+2003c8 R_X86_64_SIZE64 zzz\+0x000000000000001e
Contents of section .data:
2003a8 28000000 00000000 28000000 00000000 ................
2003b8 00000000 00000000 00000000 00000000 ................
2003c8 00000000 00000000 ........