aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris/pic-gc-72.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-cris/pic-gc-72.d')
-rw-r--r--ld/testsuite/ld-cris/pic-gc-72.d28
1 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/pic-gc-72.d b/ld/testsuite/ld-cris/pic-gc-72.d
new file mode 100644
index 0000000..7c30980c
--- /dev/null
+++ b/ld/testsuite/ld-cris/pic-gc-72.d
@@ -0,0 +1,28 @@
+#source: pic-gc-72.s
+#source: expdref1.s
+#source: expdyn1.s
+#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
+#ld: --shared -m crislinux --gc-sections
+#objdump: -s -t -R -p -T
+
+# Exercise PIC relocs through changed GC sweep function.
+# There should be nothing left except from expdyn1.s.
+
+.*: file format elf32-cris
+#...
+DYNAMIC RELOCATION RECORDS \(none\)
+
+Contents of section .hash:
+#...
+Contents of section .dynsym:
+#...
+Contents of section .dynstr:
+#...
+Contents of section .text:
+ 0188 0f050f05 .*
+Contents of section .dynamic:
+#...
+Contents of section .got:
+ 21e4 8c210000 00000000 00000000 .*
+Contents of section .data:
+ 21f0 00000000 .*