This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Link asm-source.exp testcase statically in Solaris


Without this I get a Bus Error.  Looks like a problem in the dynamic
linker.  Linking statically solves this.

Committed, since this is pretty obvious, although we really should
consider calling the linker directly again.


Index: testsuite/ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* gdb.asm/asm-source.exp: Update copyright year.  Link statically
	for *-*-solaris2*.

Index: testsuite/gdb.asm/asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.46
diff -u -p -r1.46 asm-source.exp
--- testsuite/gdb.asm/asm-source.exp 13 Dec 2003 01:01:08 -0000 1.46
+++ testsuite/gdb.asm/asm-source.exp 1 Jan 2004 01:11:47 -0000
@@ -1,4 +1,4 @@
-# Copyright 1998, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright 1998, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 # 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -118,13 +118,17 @@ if { "${asm-arch}" == "" } {
     gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
 }
 
-# On FreeBSD and NetBSD, crt1.o the final link will fail because of
+# On FreeBSD and NetBSD, the final link will fail because of
 # unresolved symbols.  It turns out that libc.so references symbols
 # that are 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 {
+#
+# On Solaris, linking dynamically results in a binary that dumps core.
+#
+if {[istarget "*-*-freebsd*"] || [istarget "*-*-netbsd*"]
+    || [istarget "*-*-solaris2*"]} then {
     append link-flags " -static"
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]