aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/relr-data-pie.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/relr-data-pie.d')
-rw-r--r--ld/testsuite/ld-aarch64/relr-data-pie.d18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/relr-data-pie.d b/ld/testsuite/ld-aarch64/relr-data-pie.d
new file mode 100644
index 0000000..b90ff3b
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/relr-data-pie.d
@@ -0,0 +1,18 @@
+#source: relr-data.s
+#ld: -pie -z pack-relative-relocs -T relocs.ld
+#readelf: -rW
+
+Relocation section '\.rela\.dyn' at offset 0x1.* contains 5 entries:
+ Offset Info Type Symbol's Value Symbol's Name \+ Addend
+0000000012340000 0000000000000403 R_AARCH64_RELATIVE 10004
+0000000012340008 0000000000000403 R_AARCH64_RELATIVE 10008
+0000000012340010 0000000000000403 R_AARCH64_RELATIVE 1000c
+0000000012340018 0000000000000403 R_AARCH64_RELATIVE 12340050
+0000000012340040 0000000300000101 R_AARCH64_ABS64 0000000000000000 sym_weak_undef \+ 0
+
+Relocation section '\.relr\.dyn' at offset 0x1.* contains 2 entries which relocate 4 locations:
+Index: Entry Address Symbolic Address
+0000: 0000000012340020 0000000012340020 aligned_local
+0001: 0000000000000027 0000000012340028 aligned_hidden
+ 0000000012340030 aligned_global
+ 0000000012340048 aligned_DYNAMIC