]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.asm/asm-source.exp: Make sure the final link succeeds on
authorMark Kettenis <kettenis@gnu.org>
Fri, 30 May 2003 17:45:50 +0000 (17:45 +0000)
committerMark Kettenis <kettenis@gnu.org>
Fri, 30 May 2003 17:45:50 +0000 (17:45 +0000)
FreeBSD.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.asm/asm-source.exp

index ccc3e9c482f1b7d931e1cf2f18abd2584322516b..582d812d6f31b7121805fe338735089ce45eaa47 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-30  Mark Kettenis  <kettenis@gnu.org>
+
+       * gdb.asm/asm-source.exp: Make sure the final link succeeds on
+       FreeBSD.
+
 2003-05-29  Richard Henderson  <rth@redhat.com>
 
        * gdb.asm/alpha.inc: New file.
index c8f16b97e1166bc864a731f7dd3386e2092e6f73..5dbf058f4254517a76d8354349be8b7b876fc1d1 100644 (file)
@@ -105,6 +105,15 @@ if { "${asm-arch}" == "" } {
     gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
 }
 
+# On FreeBSD, crt1.o 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*"] then {
+    set link-flags "-static"
+}
+
 # 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