* 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. (link-flags): Set to "--entry _start" regardless of target. Special linker flags are to be appended to $link-flags. * gdb.asm/mips.inc (gdbasm_startup): Remove __start label.
This commit is contained in:
parent
5b761a580b
commit
a3895ceeba
|
@ -1,3 +1,12 @@
|
||||||
|
2003-11-26 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.
|
||||||
|
(link-flags): Set to "--entry _start" regardless of target.
|
||||||
|
Special linker flags are to be appended to $link-flags.
|
||||||
|
* gdb.asm/mips.inc (gdbasm_startup): Remove __start label.
|
||||||
|
|
||||||
2003-11-25 Michael Chastain <mec.gnu@mindspring.com>
|
2003-11-25 Michael Chastain <mec.gnu@mindspring.com>
|
||||||
|
|
||||||
* gdb.cp/method.exp: Accept output of new demangler.
|
* gdb.cp/method.exp: Accept output of new demangler.
|
||||||
|
|
|
@ -33,7 +33,7 @@ set bug_id 0
|
||||||
|
|
||||||
set asm-arch ""
|
set asm-arch ""
|
||||||
set asm-flags ""
|
set asm-flags ""
|
||||||
set link-flags ""
|
set link-flags "--entry _start"
|
||||||
|
|
||||||
switch -glob -- [istarget] {
|
switch -glob -- [istarget] {
|
||||||
"alpha*-*-*" {
|
"alpha*-*-*" {
|
||||||
|
@ -63,13 +63,10 @@ switch -glob -- [istarget] {
|
||||||
}
|
}
|
||||||
"i\[3456\]86-*-*" {
|
"i\[3456\]86-*-*" {
|
||||||
set asm-arch i386
|
set asm-arch i386
|
||||||
if [istarget "*-*-cygwin*"] then {
|
|
||||||
set link-flags "--entry _start"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
"m32r*-*" {
|
"m32r*-*" {
|
||||||
set asm-arch m32r
|
set asm-arch m32r
|
||||||
set link-flags "-Wl,--whole-archive -lgloss -Wl,--no-whole-archive"
|
append link-flags " -Wl,--whole-archive -lgloss -Wl,--no-whole-archive"
|
||||||
}
|
}
|
||||||
"m6811-*-*" {
|
"m6811-*-*" {
|
||||||
set asm-arch m68hc11
|
set asm-arch m68hc11
|
||||||
|
@ -88,7 +85,6 @@ switch -glob -- [istarget] {
|
||||||
"sh*-*-*" {
|
"sh*-*-*" {
|
||||||
set asm-arch sh
|
set asm-arch sh
|
||||||
set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"
|
set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"
|
||||||
set link-flags "--entry _start"
|
|
||||||
}
|
}
|
||||||
"sparc-*-*" {
|
"sparc-*-*" {
|
||||||
set asm-arch sparc
|
set asm-arch sparc
|
||||||
|
@ -118,13 +114,14 @@ if { "${asm-arch}" == "" } {
|
||||||
gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
|
gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
|
||||||
}
|
}
|
||||||
|
|
||||||
# On FreeBSD, crt1.o the final link will fail because of unresolved
|
# On FreeBSD and NetBSD, crt1.o the final link will fail because of
|
||||||
# symbols. It turns out that libc.so references symbols that are
|
# unresolved symbols. It turns out that libc.so references symbols
|
||||||
# normally provided by crt1.o, which isn't linked in since we specify
|
# that are normally provided by crt1.o, which isn't linked in since we
|
||||||
# -nostartfiles. Using -nostdlib doesn't help since target_compile
|
# specify -nostartfiles. Using -nostdlib doesn't help since
|
||||||
# automatically adds -lm. Linking statically avoids this mess.
|
# target_compile automatically adds -lm. Linking statically avoids
|
||||||
if [istarget "*-*-freebsd*"] then {
|
# this mess.
|
||||||
set link-flags "-static"
|
if {[istarget "*-*-freebsd*"] || [istarget "*-*-netbsd*"]} then {
|
||||||
|
append link-flags " -static"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Watch out, we are invoking the assembler, but the testsuite sets multilib
|
# Watch out, we are invoking the assembler, but the testsuite sets multilib
|
||||||
|
|
|
@ -58,7 +58,5 @@
|
||||||
|
|
||||||
comment "crt0 startup"
|
comment "crt0 startup"
|
||||||
.macro gdbasm_startup
|
.macro gdbasm_startup
|
||||||
.global __start
|
|
||||||
__start:
|
|
||||||
move $fp, $sp
|
move $fp, $sp
|
||||||
.endm
|
.endm
|
||||||
|
|
Loading…
Reference in New Issue