+2003-11-29 Mark Kettenis <kettenis@gnu.org>
+
+ * gdb.asm/asm-source.exp: Initialize asm-note to "empty". Set
+ asm-note to "netbsd" for *-*-netbsdelf* and x86_64-*-netbsd*. Use
+ it to create the appropriate note.inc.
+ * gdb.asm/asmsrc1.s: Include "note.inc".
+ * gdb.asm/netbsd.inc: New file.
+ * gdb.asm/empty.inc: New file.
+
2003-11-28 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
set bug_id 0
set asm-arch ""
+set asm-note "empty"
set asm-flags ""
set link-flags "--entry _start"
append link-flags " -static"
}
+# On NetBSD/ELF we need a special NetBSD-identifying note section.
+if { [istarget "*-*-netbsdelf*"]
+ || [istarget "x86_64-*-netbsd*"] } then {
+ set asm-note "netbsd"
+}
+
# 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
remote_exec build "rm -f ${subdir}/arch.inc"
remote_download host ${srcdir}/${subdir}/${asm-arch}.inc ${subdir}/arch.inc
+remote_exec build "rm -f ${subdir}/note.inc"
+remote_download host ${srcdir}/${subdir}/${asm-note}.inc ${subdir}/note.inc
if { "${asm-flags}" == "" } {
#set asm-flags "-Wa,-gstabs,-I${srcdir}/${subdir},-I${objdir}/${subdir}"
"look at static function"
remote_exec build "rm -f ${subdir}/arch.inc"
+remote_exec build "rm -f ${subdir}/note.inc"