From: Mark Kettenis Date: Sat, 31 Jan 2004 14:32:24 +0000 (+0000) Subject: * gdb.asm/asm-source.exp: Set asm-note to "openbsd" for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53904d1e5f3bd49eb1c0a8cd11db85c702f69e6c;p=binutils-gdb.git * gdb.asm/asm-source.exp: Set asm-note to "openbsd" for *-*-openbsd*. * gdb.asm/openbsd.inc: New file. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3e4e39dfbe6..f874e3eaa03 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-01-31 Mark Kettenis + + * gdb.asm/asm-source.exp: Set asm-note to "openbsd" for + *-*-openbsd*. + * gdb.asm/openbsd.inc: New file. + 2004-01-30 Mark Kettenis * gdb.asm/asm-source.exp: Strip -Wl, from link-flags. Don't diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index 411d13d06bc..75e64b484ea 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -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 index 00000000000..90e3dbd0d25 --- /dev/null +++ b/gdb/testsuite/gdb.asm/openbsd.inc @@ -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