diff options
Diffstat (limited to 'ld/testsuite/ld-selective/selective.exp')
-rw-r--r-- | ld/testsuite/ld-selective/selective.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index b4bc2ec..bdea212 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -56,6 +56,13 @@ set cflags "-w -O -ffunction-sections -fdata-sections" set cxxflags "-fvtable-gc -fno-exceptions -fno-rtti" set ldflags "--gc-sections -Bstatic" +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 + # compatibility) + set ldflags "-e _start -mshelf32 $ldflags" +} + # If we don't have g++ for the target, mark all tests as untested. if { [which $CXX] == 0 } { foreach testitem $seltests { |