* ld-cris/globsymw2.s: New file.
authorHans-Peter Nilsson <hp@axis.com>
Mon, 7 Feb 2005 03:16:43 +0000 (03:16 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 7 Feb 2005 03:16:43 +0000 (03:16 +0000)
* ld-cris/warn3.d, ld-cris/warn4.d: New tests.

ld/testsuite/ChangeLog
ld/testsuite/ld-cris/globsymw2.s [new file with mode: 0644]
ld/testsuite/ld-cris/warn3.d [new file with mode: 0644]
ld/testsuite/ld-cris/warn4.d [new file with mode: 0644]

index 030c65f..c73d4a0 100644 (file)
@@ -1,5 +1,8 @@
 2005-02-07  Hans-Peter Nilsson  <hp@axis.com>
 
+       * ld-cris/globsymw2.s: New file.
+       * ld-cris/warn3.d, ld-cris/warn4.d: New tests.
+
        * ld-discard/extern.d, ld-discard/start.d, ld-discard/static.d:
        Adjust for being identified as warnings.
 
diff --git a/ld/testsuite/ld-cris/globsymw2.s b/ld/testsuite/ld-cris/globsymw2.s
new file mode 100644 (file)
index 0000000..a9e11ff
--- /dev/null
@@ -0,0 +1,16 @@
+       .text
+       .stabn  162,0,0,0
+;# A bit like globsymw1.s but containing a valid, working, stabs
+;# symbol warning construct.
+       .stabs "isatty is not implemented and will always fail",30,0,0,0
+       .stabs "globsym1",1,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:
diff --git a/ld/testsuite/ld-cris/warn3.d b/ld/testsuite/ld-cris/warn3.d
new file mode 100644 (file)
index 0000000..c01b6cb
--- /dev/null
@@ -0,0 +1,10 @@
+#source: start1.s
+#source: globsym1ref.s
+#source: globsymw2.s
+#target: cris-*-*elf* cris-*-*aout*
+#as: --em=crisaout
+#ld: -mcrisaout
+#warning: warning: isatty is not implemented and will always fail$
+#objdump: -p
+.*:     file format a\.out-cris
+#pass
diff --git a/ld/testsuite/ld-cris/warn4.d b/ld/testsuite/ld-cris/warn4.d
new file mode 100644 (file)
index 0000000..dc096b6
--- /dev/null
@@ -0,0 +1,13 @@
+#source: start1.s
+#source: globsym1ref.s
+#source: globsymw2.s
+#target: cris-*-*elf* cris-*-*aout*
+#as: --em=criself
+#ld: -mcriself
+#warning: warning: isatty is not implemented and will always fail$
+#objdump: -p
+#xfail: *-*-*
+# The test is xfailed because ELF stabs doesn't handle the stabs
+# warning construct.
+.*:     file format elf32.*-cris
+#pass