2
0
mirror of https://sourceware.org/git/binutils-gdb.git synced 2024-12-15 04:31:49 +08:00
binutils-gdb/ld/testsuite/ld-x86-64/pr13082-1b.d
H.J. Lu 1da80baa66 Count R_X86_64_RELATIVE64 as reloc_class_relative
bfd/

	* elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
	R_X86_64_RELATIVE64.

ld/testsuite/

	* ld-x86-64/pr13082-1a.d: Check RELACOUNT.
	* ld-x86-64/pr13082-1b.d: Likewise.
2012-05-10 17:15:19 +00:00

14 lines
412 B
Makefile

#source: pr13082-1.s
#name: PR ld/13082-1 (b)
#as: --x32
#ld: -pie -melf32_x86_64
#readelf: -d -r --wide
Dynamic section at offset 0x[0-9a-f]+ contains [0-9]+ entries:
#...
0x[0-9a-f]+ +\(RELACOUNT\) +1
#...
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE64 +[0-9a-f]+