aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-08-15 05:19:32 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-08-15 05:19:32 +0000
commit43b1011811f4eb90d90691f227ab545e578c6dd4 (patch)
treec56a616773556bef2d35f9ab87ee942e9559c6cd /ld/testsuite/ld-cris
parent0485ddbcbc9e57f73e5557e6abe33fd84a335ad3 (diff)
downloadgdb-43b1011811f4eb90d90691f227ab545e578c6dd4.zip
gdb-43b1011811f4eb90d90691f227ab545e578c6dd4.tar.gz
gdb-43b1011811f4eb90d90691f227ab545e578c6dd4.tar.bz2
* ld-cris/libdso-4.d, ld-cris/undef1.d: New test.
Diffstat (limited to 'ld/testsuite/ld-cris')
-rw-r--r--ld/testsuite/ld-cris/libdso-4.d11
-rw-r--r--ld/testsuite/ld-cris/undef1.d13
2 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/libdso-4.d b/ld/testsuite/ld-cris/libdso-4.d
new file mode 100644
index 0000000..b94199c
--- /dev/null
+++ b/ld/testsuite/ld-cris/libdso-4.d
@@ -0,0 +1,11 @@
+#source: dso-2.s
+#as: --pic --no-underscore
+#ld: --shared -m crislinux
+#objdump: -T
+
+# DSO with an undef symbol "dsofn". See undef1.d.
+
+.*: file format elf32-cris
+#...
+0+ D \*UND\* 0+ dsofn
+
diff --git a/ld/testsuite/ld-cris/undef1.d b/ld/testsuite/ld-cris/undef1.d
new file mode 100644
index 0000000..9eeeb67
--- /dev/null
+++ b/ld/testsuite/ld-cris/undef1.d
@@ -0,0 +1,13 @@
+#source: dso-1.s
+#source: gotrel1.s --pic
+#as: --no-underscore
+#ld: -m crislinux tmpdir/libdso-4.so
+#objdump: -T
+
+# The DSO used has an undef reference to the symbol "dsofn", which is
+# supposed to cause the program to automatically export it as a dynamic
+# symbol; no --export-dynamic is supposed to be needed.
+
+#...
+[0-9a-f]+ g DF .text 00000000 dsofn
+#pass