aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris/expdyn2.d
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-07-12 15:51:54 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-07-12 15:51:54 +0000
commitf1cf2c2e58d26549bd69ae893073d35eb74abeac (patch)
tree6c2184fae10ef3a5630fd93875cdbd6bd2fe9bba /ld/testsuite/ld-cris/expdyn2.d
parentaf5f3db67c5dcbbc7b2038fe781d03301b94783d (diff)
downloadgdb-f1cf2c2e58d26549bd69ae893073d35eb74abeac.zip
gdb-f1cf2c2e58d26549bd69ae893073d35eb74abeac.tar.gz
gdb-f1cf2c2e58d26549bd69ae893073d35eb74abeac.tar.bz2
* ld-cris/nodyn4.d, ld-cris/expdyn4.d, ld-cris/comref1.s,
ld-cris/euwref1.s, ld-cris/expdyn3.d, ld-cris/expdyn2.d, ld-cris/expdref1.s: New tests.
Diffstat (limited to 'ld/testsuite/ld-cris/expdyn2.d')
-rw-r--r--ld/testsuite/ld-cris/expdyn2.d16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/expdyn2.d b/ld/testsuite/ld-cris/expdyn2.d
new file mode 100644
index 0000000..714396e
--- /dev/null
+++ b/ld/testsuite/ld-cris/expdyn2.d
@@ -0,0 +1,16 @@
+#source: expdyn1.s
+#source: expdref1.s --pic
+#as: --no-underscore
+#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so
+#objdump: -R
+
+# Programs linked with --export-dynamic threw away .rela.got for exported
+# symbols, but since got reference counter wasn't reset, there was a SEGV
+# trying to generate the .rela.got relocations. In this test, we have an
+# object in the program that has pic-relocations to an exported symbol,
+# but those relocations can be resolved at link-time. We link to a DSO to
+# get dynamic linking.
+
+.*: file format elf32-cris
+
+DYNAMIC RELOCATION RECORDS \(none\)