binutils-gdb/ld/testsuite/ld-aarch64/relr-text-shared.d
Alan Modra 4287833613 Re: aarch64: Add some DT_RELR ld tests
aarch64-elf fails these tests due to .rela.dyn being at a different
address to that expected, and due to the symbol table being different.
Unexpected symbol numbering results in a mismatch of reloc r_info
field, but these are shown decoded so the raw field doesn't really add
anything to the test.

	* testsuite/ld-aarch64/relr-align.d: Accept any address for
	.relr.dyn section.  Don't match raw r_info field.
	* testsuite/ld-aarch64/relr-data-shared.d: Likewise.
	* testsuite/ld-aarch64/relr-got-shared.d: Likewise.
	* testsuite/ld-aarch64/relr-text-shared.d: Likewise.
2024-06-06 10:37:02 +09:30

15 lines
492 B
Makefile

#source: relr-text.s
#ld: -shared -z pack-relative-relocs -T relocs.ld
#readelf: -drW
#...
0x0000000000000016 \(TEXTREL\) 0x0
#...
0x0000000000000024 \(RELR\) .*
0x0000000000000023 \(RELRSZ\) 8 \(bytes\)
0x0000000000000025 \(RELRENT\) 8 \(bytes\)
#...
Relocation section '.relr.dyn' .* contains 1 entry which relocates 1 location:
Index: Entry Address Symbolic Address
0000: 0000000000010000 0000000000010000 _start