X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-selective%2Fselective.exp;h=7b115adb7811ac3f3977577658c3429a10a071b1;hb=5b1f6c95704da7128ca2a7c682a2e0ef533180ce;hp=11c8f3fe69501f502f94e4012ad03af6682382c0;hpb=61a0857c0fb512ce6a2ba4315a37fcce744f6045;p=binutils-gdb.git diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index 11c8f3fe695..7b115adb781 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -1,5 +1,5 @@ # Expect script for LD selective linking tests -# Copyright (C) 1998-2017 Free Software Foundation, Inc. +# Copyright (C) 1998-2021 Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -46,8 +46,8 @@ set seltests { {A::foo() B::foo() dropme1() dropme2()} {*-*-*}} } -set cflags "-w -O -ffunction-sections -fdata-sections" -set cxxflags "-fno-exceptions -fno-rtti" +set cflags "-w -O -ffunction-sections -fdata-sections $NOSANITIZE_CFLAGS $NOLTO_CFLAGS" +set cxxflags "-fno-exceptions -fno-rtti $NOSANITIZE_CFLAGS $NOLTO_CFLAGS" set ldflags "--gc-sections -Bstatic" if [istarget mips*-*] { @@ -57,13 +57,6 @@ if [istarget mips*-*] { 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 - # compatibility) - set ldflags "-e _start -mshelf32 $ldflags" -} - if [istarget avr-*-*] { # Make .text start at a non-zero address, as some tests expect # valid symbols to have non-zero values. @@ -118,7 +111,7 @@ foreach testitem $seltests { # tests. It might have been a buglet originally; now I think better # leave as is. if { ![ld_compile "$compiler $testflags" $srcdir/$subdir/$testfile $objfile] } { - unresolved $testname + unsupported $testname continue } @@ -158,7 +151,7 @@ foreach testitem $seltests { } if ![ld_nm $nm --demangle $ldfile] { - unresolved $testname + fail $testname continue }