* ld-cris/expdyn6.d, ld-cris/weakref2.d, ld-cris/expdyn7.d,
authorHans-Peter Nilsson <hp@axis.com>
Thu, 7 Nov 2002 13:25:48 +0000 (13:25 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Thu, 7 Nov 2002 13:25:48 +0000 (13:25 +0000)
ld-cris/nodyn5.d, ld-cris/expdyn5.d: New tests.

ld/testsuite/ChangeLog
ld/testsuite/ld-cris/expdyn5.d [new file with mode: 0644]
ld/testsuite/ld-cris/expdyn6.d [new file with mode: 0644]
ld/testsuite/ld-cris/expdyn7.d [new file with mode: 0644]
ld/testsuite/ld-cris/nodyn5.d [new file with mode: 0644]
ld/testsuite/ld-cris/weakref2.d [new file with mode: 0644]

index d082ead..a752bfb 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-07  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * ld-cris/expdyn6.d, ld-cris/weakref2.d, ld-cris/expdyn7.d,
+       ld-cris/nodyn5.d, ld-cris/expdyn5.d: New tests.
+
 2002-11-07  Nick Clifton  <nickc@redhat.com>
 
        * ld-fastcall/fastcall.exp: Only run tests for PE type x86
diff --git a/ld/testsuite/ld-cris/expdyn5.d b/ld/testsuite/ld-cris/expdyn5.d
new file mode 100644 (file)
index 0000000..6104491
--- /dev/null
@@ -0,0 +1,13 @@
+#source: expdyn1.s
+#source: expdref1.s --pic
+#as: --no-underscore
+#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so
+#objdump: -s -j .got
+
+# Like expdyn2.d, but testing that the .got contents is correct.  There
+# needs to be a .got due to the GOT relocs, but the entry is constant.
+
+.*:     file format elf32-cris
+Contents of section \.got:
+ 8228c 24220800 00000000 00000000 06020800  .*
+ 8229c 20220800                             .*
diff --git a/ld/testsuite/ld-cris/expdyn6.d b/ld/testsuite/ld-cris/expdyn6.d
new file mode 100644 (file)
index 0000000..8dc5c5d
--- /dev/null
@@ -0,0 +1,13 @@
+#source: expdyn1.s
+#source: expdref1.s --pic
+#source: euwref1.s --pic
+#as: --no-underscore
+#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so
+#objdump: -s -j .got
+
+# Like expdyn5.d, weakly referencing symbols.
+
+.*:     file format elf32-cris
+Contents of section \.got:
+ 822ec 84220800 00000000 00000000 00000000  .*
+ 822fc 4e020800 80220800                    .*
diff --git a/ld/testsuite/ld-cris/expdyn7.d b/ld/testsuite/ld-cris/expdyn7.d
new file mode 100644 (file)
index 0000000..e0d945b
--- /dev/null
@@ -0,0 +1,13 @@
+#source: expdyn1.s
+#source: expdref1.s --pic
+#source: comref1.s --pic
+#as: --no-underscore
+#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so
+#objdump: -s -j .got
+
+# Like expdyn5.d, referencing COMMON symbols.
+
+.*:     file format elf32-cris
+Contents of section \.got:
+ 822ec 84220800 00000000 00000000 04230800  .*
+ 822fc 4b020800 80220800                    .*
diff --git a/ld/testsuite/ld-cris/nodyn5.d b/ld/testsuite/ld-cris/nodyn5.d
new file mode 100644 (file)
index 0000000..d1eb727
--- /dev/null
@@ -0,0 +1,13 @@
+#source: expdyn1.s
+#source: expdref1.s --pic
+#source: comref1.s --pic
+#as: --no-underscore
+#ld: -m crislinux
+#objdump: -s -j .got
+
+# Like nodyn4.d, but checking .got contents.
+
+.*:     file format elf32-cris
+Contents of section \.got:
+ 820c4 00000000 00000000 00000000 dc200800  .*
+ 820d4 76000800 c0200800                    .*
diff --git a/ld/testsuite/ld-cris/weakref2.d b/ld/testsuite/ld-cris/weakref2.d
new file mode 100644 (file)
index 0000000..5ebb9d5
--- /dev/null
@@ -0,0 +1,10 @@
+#source: gotrel2.s
+#as: --pic --no-underscore
+#ld: -m crislinux tmpdir/libdso-1.so
+#objdump: -s -j .got
+
+# Like weakref1.d, but check contents of .got.
+
+.*:     file format elf32-cris
+Contents of section \.got:
+ 82248 e0210800 00000000 00000000 00000000  .*