From 7b79a9d72efb9162bcf920cf546aa0cc58d9cd43 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 1 Jan 2004 01:13:42 +0000 Subject: [PATCH] * gdb.asm/asm-source.exp: Update copyright year. Link statically for *-*-solaris2*. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.asm/asm-source.exp | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 74456bb..38d0164 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-01-01 Mark Kettenis + + * gdb.asm/asm-source.exp: Update copyright year. Link statically + for *-*-solaris2*. + 2003-12-31 Michael Chastain * gdb.cp/classes.exp: Rewrite. Clean up patterns to match diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index e41bfec..301b778 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -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" } -- 2.7.4