forked from Imagelibrary/binutils-gdb
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.
19 lines
994 B
Makefile
19 lines
994 B
Makefile
#source: relr-data.s
|
|
#ld: -shared -z pack-relative-relocs -T relocs.ld
|
|
#readelf: -rW
|
|
|
|
Relocation section '\.rela\.dyn' .* contains 6 entries:
|
|
Offset Info Type Symbol's Value Symbol's Name \+ Addend
|
|
0000000012340000 .* R_AARCH64_RELATIVE 10004
|
|
0000000012340008 .* R_AARCH64_RELATIVE 10008
|
|
0000000012340018 .* R_AARCH64_RELATIVE 12340050
|
|
0000000012340010 .* R_AARCH64_ABS64 000000000001000c sym_global \+ 0
|
|
0000000012340030 .* R_AARCH64_ABS64 000000000001000c sym_global \+ 0
|
|
0000000012340040 .* R_AARCH64_ABS64 0000000000000000 sym_weak_undef \+ 0
|
|
|
|
Relocation section '\.relr\.dyn' .* contains 2 entries which relocate 3 locations:
|
|
Index: Entry Address Symbolic Address
|
|
0000: 0000000012340020 0000000012340020 aligned_local
|
|
0001: 0000000000000023 0000000012340028 aligned_hidden
|
|
0000000012340048 aligned_DYNAMIC
|