diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-05-30 17:45:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-05-30 17:45:50 +0000 |
commit | 10059fdf95b7cce091273a31f9ebd0ad5e76b6ff (patch) | |
tree | 9058f7743f27fd544e0d0b61254fab894d277e59 /gdb/testsuite | |
parent | 36af4a4e51338a12cdd06009ae335ad776b496ff (diff) | |
download | gdb-10059fdf95b7cce091273a31f9ebd0ad5e76b6ff.zip gdb-10059fdf95b7cce091273a31f9ebd0ad5e76b6ff.tar.gz gdb-10059fdf95b7cce091273a31f9ebd0ad5e76b6ff.tar.bz2 |
* gdb.asm/asm-source.exp: Make sure the final link succeeds on
FreeBSD.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.asm/asm-source.exp | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ccc3e9c..582d812 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index c8f16b9..5dbf058 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -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 |