From: Nick Clifton Date: Wed, 19 Sep 2007 09:22:07 +0000 (+0000) Subject: * ld-scripts/crossref.exp: Compile test source with -mtiny=0 in order to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4dcdce139ffe08fec50cd24e688c3e0e21d545c1;p=binutils-gdb.git * ld-scripts/crossref.exp: Compile test source with -mtiny=0 in order to prevent the use of the small data area. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 9905b02f1fd..9c606826c07 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-09-19 Nick Clifton + + * ld-scripts/crossref.exp: Compile test source with -mtiny=0 in + order to prevent the use of the small data area. + 2007-09-17 H.J. Lu PR binutils/3281 diff --git a/ld/testsuite/ld-scripts/crossref.exp b/ld/testsuite/ld-scripts/crossref.exp index 6d0420b0148..56a0f74ba6d 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