* gdb.asm/asm-source.exp: Set asm-note to "openbsd" for
authorMark Kettenis <kettenis@gnu.org>
Sat, 31 Jan 2004 14:32:24 +0000 (14:32 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sat, 31 Jan 2004 14:32:24 +0000 (14:32 +0000)
*-*-openbsd*.
* gdb.asm/openbsd.inc: New file.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.asm/asm-source.exp
gdb/testsuite/gdb.asm/openbsd.inc [new file with mode: 0644]

index 3e4e39dfbe6bd542b6266b7299dbe2d45908d790..f874e3eaa0309a29e75ee9e55df208308267fd4f 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-31  Mark Kettenis  <kettenis@gnu.org>
+
+       * gdb.asm/asm-source.exp: Set asm-note to "openbsd" for
+       *-*-openbsd*.
+       * gdb.asm/openbsd.inc: New file.
+
 2004-01-30  Mark Kettenis  <kettenis@gnu.org>
 
        * gdb.asm/asm-source.exp: Strip -Wl, from link-flags.  Don't
index 411d13d06bc0371a3394e56f9a9063dc65ac6396..75e64b484ea2d5fffb415dd91ecdeb2c0e61dae2 100644 (file)
@@ -124,6 +124,13 @@ if { [istarget "*-*-netbsdelf*"]
     set asm-note "netbsd"
 }
 
+# On OpenBSD/ELF we need a similar note section.  We make no attempt
+# of handing a.out here since most OpenBSD/a.out systems use a rather
+# outdated assembler that doesn't assemble this test's code anyway.
+if { [istarget "*-*-openbsd*"] } then {
+    set asm-note "openbsd"
+}
+
 # Watch out, we are invoking the assembler, but the testsuite sets multilib
 # switches according to compiler syntax.  If we pass these options straight
 # to the assembler, they won't always make sense.  If we don't pass them to
diff --git a/gdb/testsuite/gdb.asm/openbsd.inc b/gdb/testsuite/gdb.asm/openbsd.inc
new file mode 100644 (file)
index 0000000..90e3dbd
--- /dev/null
@@ -0,0 +1,12 @@
+       comment "openbsd .note"
+
+.section       ".note.openbsdbsd.ident", "a"
+       .p2align        2
+
+       .long   8
+       .long   4
+       .long   1
+       .ascii  "OpenBSD\0\0"
+       .long   200311
+
+       .p2align        2