aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/relr-got-shared.d
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2024-05-22 16:52:11 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2024-05-31 09:47:50 +0100
commit5df6499c83896c243073d8cad8c5830f89436bd6 (patch)
treeadabb39ea30301b2017f9a7c6fa53160ead05fea /ld/testsuite/ld-aarch64/relr-got-shared.d
parenta71d87680110d854f966d8cda0f1c7887001fcdd (diff)
downloadfsf-binutils-gdb-5df6499c83896c243073d8cad8c5830f89436bd6.zip
fsf-binutils-gdb-5df6499c83896c243073d8cad8c5830f89436bd6.tar.gz
fsf-binutils-gdb-5df6499c83896c243073d8cad8c5830f89436bd6.tar.bz2
aarch64: Add some DT_RELR ld tests
Diffstat (limited to 'ld/testsuite/ld-aarch64/relr-got-shared.d')
-rw-r--r--ld/testsuite/ld-aarch64/relr-got-shared.d15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/relr-got-shared.d b/ld/testsuite/ld-aarch64/relr-got-shared.d
new file mode 100644
index 0000000..5952694
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/relr-got-shared.d
@@ -0,0 +1,15 @@
+#source: relr-got.s
+#ld: -shared -z pack-relative-relocs -T relocs.ld
+#readelf: -rW
+
+Relocation section '\.rela\.dyn' at offset 0x10168 contains 3 entries:
+ Offset Info Type Symbol's Value Symbol's Name \+ Addend
+0000000000020020 0000000300000401 R_AARCH64_GLOB_DAT 0000000000010038 sym_global \+ 0
+0000000000020028 0000000500000401 R_AARCH64_GLOB_DAT 000000000000002a sym_global_abs \+ 0
+0000000000020030 0000000200000401 R_AARCH64_GLOB_DAT 0000000000000000 sym_weak_undef \+ 0
+
+Relocation section '\.relr\.dyn' at offset 0x101b0 contains 2 entries which relocate 3 locations:
+Index: Entry Address Symbolic Address
+0000: 0000000000020008 0000000000020008 _GLOBAL_OFFSET_TABLE_ \+ 0x8
+0001: 0000000000000007 0000000000020010 _GLOBAL_OFFSET_TABLE_ \+ 0x10
+ 0000000000020018 _GLOBAL_OFFSET_TABLE_ \+ 0x18