NetBSD testsuite patch

Ben Elliston bje@wasabisystems.com
Sun Nov 23 07:32:00 GMT 2003


I'm fixing testsuite failures in asm-source.exp.  This patch does not
completely fix it, but it is a step in the right direction.  Okay to
commit?

2003-11-23  Ben Elliston  <bje@wasabisystems.com>

	* gdb.asm/asm-source.exp: Make sure the final link succeeds on
	NetBSD as it does on FreeBSD.  Modelled on a similar change by
	Mark Kettenis on 2003-05-30.

*** asm-source.exp	15 Sep 2003 09:52:56 -0000	1.43
--- asm-source.exp	23 Nov 2003 07:31:30 -0000
*************** if { "${asm-arch}" == "" } {
*** 123,129 ****
  # normally provided by crt1.o, which isn't linked in since we specify
  # -nostartfiles.  Using -nostdlib doesn't help since target_compile
  # automatically adds -lm.  Linking statically avoids this mess.
! if [istarget "*-*-freebsd*"] then {
      set link-flags "-static"
  }
  
--- 123,129 ----
  # normally provided by crt1.o, which isn't linked in since we specify
  # -nostartfiles.  Using -nostdlib doesn't help since target_compile
  # automatically adds -lm.  Linking statically avoids this mess.
! if {[istarget "*-*-freebsd*"] || [istarget "*-*-netbsd*"]} then {
      set link-flags "-static"
  }
  



More information about the Gdb-patches mailing list