diff options
author | Nick Clifton <nickc@redhat.com> | 2007-09-19 09:22:07 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-09-19 09:22:07 +0000 |
commit | 4dcdce139ffe08fec50cd24e688c3e0e21d545c1 (patch) | |
tree | 7ec60f8ce855dce0c0e2a04acad1c27cec863a9d /ld/testsuite/ld-scripts/crossref.exp | |
parent | 86f2e683461018af5274634f0b119b39576b17e0 (diff) | |
download | gdb-4dcdce139ffe08fec50cd24e688c3e0e21d545c1.zip gdb-4dcdce139ffe08fec50cd24e688c3e0e21d545c1.tar.gz gdb-4dcdce139ffe08fec50cd24e688c3e0e21d545c1.tar.bz2 |
* ld-scripts/crossref.exp: Compile test source with -mtiny=0 in order to
prevent the use of the small data area.
Diffstat (limited to 'ld/testsuite/ld-scripts/crossref.exp')
-rw-r--r-- | ld/testsuite/ld-scripts/crossref.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/crossref.exp b/ld/testsuite/ld-scripts/crossref.exp index 6d0420b..56a0f74 100644 --- a/ld/testsuite/ld-scripts/crossref.exp +++ b/ld/testsuite/ld-scripts/crossref.exp @@ -45,6 +45,12 @@ if [istarget powerpc64*-*-*] { set CFLAGS "$CFLAGS -mcall-aixdesc" } +# Prevent the use of the MeP's small data area which references a symbol +# called __sdabase which will not be defined by our test linker scripts. +if [istarget mep*-*-elf] { + set CFLAGS "-mtiny=0" +} + if { ![ld_compile $CC "$srcdir/$subdir/cross1.c" tmpdir/cross1.o] \ || ![ld_compile $CC "$srcdir/$subdir/cross2.c" tmpdir/cross2.o] } { unresolved $test1 |