aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-selective
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-07-19 11:49:32 +0000
committerThiemo Seufer <ths@networkno.de>2006-07-19 11:49:32 +0000
commit8c991f18837f080c5aa82bbd7b074ae47a90991d (patch)
tree3bc0c225a70f310809b6eb1152ebcb2a560d6930 /ld/testsuite/ld-selective
parentb86015eaa50eb4b44a7055a5114262e94040213a (diff)
downloadgdb-8c991f18837f080c5aa82bbd7b074ae47a90991d.zip
gdb-8c991f18837f080c5aa82bbd7b074ae47a90991d.tar.gz
gdb-8c991f18837f080c5aa82bbd7b074ae47a90991d.tar.bz2
* ld-selective/selective.exp: Fix selective testcases for MIPS.
Diffstat (limited to 'ld/testsuite/ld-selective')
-rw-r--r--ld/testsuite/ld-selective/selective.exp11
1 files changed, 9 insertions, 2 deletions
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp
index fcc2f39..175aac2 100644
--- a/ld/testsuite/ld-selective/selective.exp
+++ b/ld/testsuite/ld-selective/selective.exp
@@ -41,8 +41,8 @@ if {[istarget "alpha*-*-*"] || [istarget "ia64-*-*"]} {
# FIXME: Instead of table, read settings from each source-file.
set seltests {
{selective1 C 1.c {} {} {dropme1 dropme2} {}}
- {selective2 C 2.c {} {} {foo} {mips*-*}}
- {selective3 C 2.c {-u foo} {foo} {{foo 0}} {mips*-*}}
+ {selective2 C 2.c {} {} {foo} {}}
+ {selective3 C 2.c {-u foo} {foo} {{foo 0}} {}}
{selective4 C++ 3.cc {} {start a A::foo() B::foo()} {A::bar()} {mips*-*}}
{selective5 C++ 4.cc {} {start a A::bar()} {A::foo() B::foo()} {mips*-*}}
{selective6 C++ 5.cc {} {start a A::bar()}
@@ -53,6 +53,13 @@ set cflags "-w -O -ffunction-sections -fdata-sections"
set cxxflags "-fvtable-gc -fno-exceptions -fno-rtti"
set ldflags "--gc-sections -Bstatic"
+if [istarget mips*-*] {
+ # MIPS16 doesn't support PIC code.
+ set cflags "-mno-abicalls $cflags"
+ # MIPS ELF uses __start by default, we override it.
+ set ldflags "-e _start $ldflags"
+}
+
if [istarget sh64*-*-elf] {
# This is what gcc passes to ld by default, plus switch to the
# "usual" ELF _start (shelf32 normally uses just `start' for COFF