OSDN Git Service

* ld-cris/stabs1.s: New file.
authorHans-Peter Nilsson <hp@axis.com>
Mon, 7 Feb 2005 03:00:55 +0000 (03:00 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 7 Feb 2005 03:00:55 +0000 (03:00 +0000)
* ld-cris/undef2.d, ld-cris/undef3.d: New tests.

ld/testsuite/ChangeLog
ld/testsuite/ld-cris/def2.d [new file with mode: 0644]
ld/testsuite/ld-cris/def3.d [new file with mode: 0644]
ld/testsuite/ld-cris/globsym1ref.s [new file with mode: 0644]
ld/testsuite/ld-cris/globsymw1.s [new file with mode: 0644]
ld/testsuite/ld-cris/stabs1.s [new file with mode: 0644]
ld/testsuite/ld-cris/undef2.d [new file with mode: 0644]
ld/testsuite/ld-cris/undef3.d [new file with mode: 0644]
ld/testsuite/ld-cris/warn1.d [new file with mode: 0644]
ld/testsuite/ld-cris/warn2.d [new file with mode: 0644]

index 38887d2..92e64ab 100644 (file)
@@ -1,5 +1,8 @@
 2005-02-07  Hans-Peter Nilsson  <hp@axis.com>
 
+       * ld-cris/stabs1.s: New file.
+       * ld-cris/undef2.d, ld-cris/undef3.d: New tests.
+
        * ld-elf/start.s, ld-elf/symbolref.s, ld-elf/symbol1w.s,
        ld-elf/warn1.d: New test.
 
diff --git a/ld/testsuite/ld-cris/def2.d b/ld/testsuite/ld-cris/def2.d
new file mode 100644 (file)
index 0000000..ff75d88
--- /dev/null
@@ -0,0 +1,10 @@
+#source: start1.s
+#source: stabs1.s
+#source: globsymw1.s
+#target: cris-*-*elf* cris-*-*aout*
+#as: --em=crisaout
+#ld: -mcrisaout
+#objdump: -p
+# Just checking that undef2 links correctly when given a symbol.
+.*:     file format a\.out-cris
+#pass
diff --git a/ld/testsuite/ld-cris/def3.d b/ld/testsuite/ld-cris/def3.d
new file mode 100644 (file)
index 0000000..e1ae3c5
--- /dev/null
@@ -0,0 +1,10 @@
+#source: start1.s
+#source: stabs1.s
+#source: globsymw1.s
+#target: cris-*-*elf* cris-*-*aout*
+#as: --em=criself
+#ld: -mcriself
+#objdump: -p
+# Just checking that undef3 links correctly when given a symbol.
+.*:     file format elf32.*-cris
+#pass
diff --git a/ld/testsuite/ld-cris/globsym1ref.s b/ld/testsuite/ld-cris/globsym1ref.s
new file mode 100644 (file)
index 0000000..03d4477
--- /dev/null
@@ -0,0 +1 @@
+ .long globsym1
diff --git a/ld/testsuite/ld-cris/globsymw1.s b/ld/testsuite/ld-cris/globsymw1.s
new file mode 100644 (file)
index 0000000..955014d
--- /dev/null
@@ -0,0 +1,15 @@
+       .text
+       .stabn  162,0,0,0
+       .global globsym1
+       .type   globsym1, @function
+globsym1:
+       .stabd  46,0,0
+       .stabn  68,0,16,LM0-globsym1
+LM0:
+       .long 0
+       .size   globsym1, .-globsym1
+       .stabs  "",100,0,0,Letext0
+Letext0:
+;# This must be the last line; the point is that the warning symbol
+;# construct is last, but is missing the actual symbol warned about.
+       .stabs "isatty is not implemented and will always fail",30,0,0,0
diff --git a/ld/testsuite/ld-cris/stabs1.s b/ld/testsuite/ld-cris/stabs1.s
new file mode 100644 (file)
index 0000000..837d69d
--- /dev/null
@@ -0,0 +1,26 @@
+       .stabs  "/x/y/z/",100,0,2,Ltext0
+       .stabs  "/blah/foo.c",100,0,2,Ltext0
+       .text
+Ltext0:
+       .global _xyzzy
+       .type   _xyzzy, @function
+_xyzzy:
+       .stabd  46,0,0
+       .stabn  68,0,95,LM16-_xyzzy
+LM16:
+       .long 0
+       .stabn  68,0,96,LM17-_xyzzy
+LM17:
+       .long globsym1
+       .stabn  68,0,88,LM25-_xyzzy
+LM25:
+       .long 0
+       .size   _xyzzy, .-_xyzzy
+       .stabn  192,0,0,_xyzzy-_xyzzy
+       .stabn  224,0,0,Lscope0-_xyzzy
+Lscope0:
+;# This is the stabs construct that was barfed upon; BFD for
+;# a.out expects it to be of two parts, like the construct at
+;# the top of this file.
+       .stabs  "",100,0,0,Letext0
+Letext0:
diff --git a/ld/testsuite/ld-cris/undef2.d b/ld/testsuite/ld-cris/undef2.d
new file mode 100644 (file)
index 0000000..46015c0
--- /dev/null
@@ -0,0 +1,6 @@
+# source: start1.s
+# source: stabs1.s
+# target: cris-*-*elf* cris-*-*aout*
+# as: --em=crisaout
+# ld: -mcrisaout
+# error: .o:/blah/foo.c:96: undefined reference to `globsym1'$
diff --git a/ld/testsuite/ld-cris/undef3.d b/ld/testsuite/ld-cris/undef3.d
new file mode 100644 (file)
index 0000000..e7bca10
--- /dev/null
@@ -0,0 +1,6 @@
+#source: start1.s
+#source: stabs1.s
+#target: cris-*-*elf* cris-*-*aout*
+#as: --em=criself
+#ld: -mcriself
+#error: .o:/blah/foo.c:96: undefined reference to `globsym1'$
diff --git a/ld/testsuite/ld-cris/warn1.d b/ld/testsuite/ld-cris/warn1.d
new file mode 100644 (file)
index 0000000..ecdf19e
--- /dev/null
@@ -0,0 +1,11 @@
+#source: start1.s
+#source: globsym1ref.s
+#source: globsymw1.s
+#target: cris-*-*elf* cris-*-*aout*
+#as: --em=crisaout
+#ld: -mcrisaout
+#objdump: -p
+# There should be no warning, since the symbol warned about is
+# missing from the construct.
+.*:     file format a\.out-cris
+#pass
diff --git a/ld/testsuite/ld-cris/warn2.d b/ld/testsuite/ld-cris/warn2.d
new file mode 100644 (file)
index 0000000..96f089e
--- /dev/null
@@ -0,0 +1,11 @@
+#source: start1.s
+#source: globsym1ref.s
+#source: globsymw1.s
+#target: cris-*-*elf* cris-*-*aout*
+#as: --em=criself
+#ld: -mcriself
+#objdump: -p
+# There should be no warning, since the symbol warned about is
+# missing from the construct.
+.*:     file format elf32.*-cris
+#pass