* ld-cris/libdso-4.d, ld-cris/undef1.d: New test.
authorHans-Peter Nilsson <hp@axis.com>
Thu, 15 Aug 2002 05:19:32 +0000 (05:19 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Thu, 15 Aug 2002 05:19:32 +0000 (05:19 +0000)
ld/testsuite/ChangeLog
ld/testsuite/ld-cris/libdso-4.d [new file with mode: 0644]
ld/testsuite/ld-cris/undef1.d [new file with mode: 0644]

index 9b97cb4..d7d2b66 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-15  Hans-Peter Nilsson  <hp@axis.com>
+
+       * ld-cris/libdso-4.d, ld-cris/undef1.d: New test.
+
 2002-08-13  H.J. Lu <hjl@gnu.org>
 
        * ld-elfvers/vers.exp: Add vers23c and vers23d.
diff --git a/ld/testsuite/ld-cris/libdso-4.d b/ld/testsuite/ld-cris/libdso-4.d
new file mode 100644 (file)
index 0000000..b94199c
--- /dev/null
@@ -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 (file)
index 0000000..9eeeb67
--- /dev/null
@@ -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