forked from Imagelibrary/binutils-gdb
Improve binutils testsuite coverage for GNU/Hurd.
binutils/testsuite/ * lib/utils-lib.exp (is_elf_format): Consider for *-*-gnu*, too. * binutils-all/elfedit-2.d (target): Likewise. * binutils-all/elfedit-3.d (target): Likewise. * binutils-all/i386/i386.exp: Likewise. * binutils-all/objcopy.exp: Likewise. * binutils-all/strip-3.d (target): Likewise. gas/testsuite/ * lib/gas-defs.exp (is_elf_format): Consider for *-*-gnu*, too. * gas/elf/elf.exp: Likewise. * gas/symver/symver.exp: Likewise. ld/ * configure.host: Add stanza for *-*-gnu*. ld/testsuite/ * lib/ld-lib.exp (is_elf_format): Consider for *-*-gnu*, too. * ld-discard/discard.exp: Likewise. * ld-elf/binutils.exp: Likewise. * ld-elf/commonpage1.d (target): Likewise. * ld-elf/compress1c.d (target): Likewise. * ld-elf/discard1.d (target): Likewise. * ld-elf/discard2.d (target): Likewise. * ld-elf/discard3.d (target): Likewise. * ld-elf/dynsym1.d (target): Likewise. * ld-elf/eh6.d (target): Likewise. * ld-elf/elf.exp: Likewise. (array_tests): Move -static tests to... (array_tests_static): ... here, and handle it accordingly. * ld-elf/hash.d (target): Likewise. * ld-elf/header.d (target): Likewise. * ld-elf/loadaddr1.d (target): Likewise. * ld-elf/loadaddr2.d (target): Likewise. * ld-elf/loadaddr3a.d (target): Likewise. * ld-elf/loadaddr3b.d (target): Likewise. * ld-elf/local1.d (target): Likewise. * ld-elf/maxpage1.d (target): Likewise. * ld-elf/maxpage2.d (target): Likewise. * ld-elf/maxpage3a.d (target): Likewise. * ld-elf/multibss1.d (target): Likewise. * ld-elf/noload-2.d (target): Likewise. * ld-elf/seg.d (target): Likewise. * ld-elf/textaddr1.d (target): Likewise. * ld-elf/textaddr2.d (target): Likewise. * ld-elf/textaddr3.d (target): Likewise. * ld-elf/textaddr4.d (target): Likewise. * ld-elf/textaddr5.d (target): Likewise. * ld-elf/textaddr6.d (target): Likewise. * ld-elf/textaddr7.d (target): Likewise. * ld-elf/tls_common.exp: Likewise. * ld-elf/unknown2.d (target): Likewise. * ld-elfvers/vers.exp: Likewise. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfweak/elfweak.exp: Likewise. (setup_xfail_gnu_hurd): New function. Use it where appropriate. * ld-gc/abi-note.d (target): Likewise. * ld-gc/gc.exp: Likewise. * ld-gc/pr11218.d (target): Likewise. * ld-gc/start.d (target): Likewise. * ld-i386/i386.exp: Likewise. * ld-ifunc/binutils.exp: Likewise. * ld-ifunc/ifunc.exp: Likewise. * ld-linkonce/linkonce.exp: Likewise. * ld-linkonce/zeroehl32.d (target): Likewise. * ld-pie/pie.exp: Likewise. * ld-scripts/phdrs2.exp: Likewise. * ld-scripts/rgn-at5.d (target): Likewise. * ld-shared/shared.exp: Likewise. * ld-undefined/entry-3.d (target): Likewise. * ld-undefined/entry-4.d (target): Likewise. * ld-undefined/weak-undef.exp: Likewise.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#source: empty.s
|
||||
#readelf: -h
|
||||
#name: Update ELF header 2
|
||||
#target: *-*-linux*
|
||||
#target: *-*-linux* *-*-gnu*
|
||||
|
||||
#...
|
||||
ELF Header:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#source: empty.s
|
||||
#readelf: -h
|
||||
#name: Update ELF header 3
|
||||
#target: *-*-linux*
|
||||
#target: *-*-linux* *-*-gnu*
|
||||
|
||||
#...
|
||||
ELF Header:
|
||||
|
||||
@@ -15,7 +15,11 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
if {!([istarget "i*86-*-linux*"] || [istarget "x86_64-*-linux*"]) || ![is_elf_format] || [is_remote host]} then {
|
||||
if {!([istarget "i*86-*-linux*"]
|
||||
|| [istarget "i*86-*-gnu*"]
|
||||
|| [istarget "x86_64-*-linux*"])
|
||||
|| ![is_elf_format]
|
||||
|| [is_remote host]} then {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -538,7 +538,8 @@ proc copy_setup { } {
|
||||
set add_libs ""
|
||||
}
|
||||
|
||||
if { [istarget *-*-linux*] } {
|
||||
if { [istarget *-*-linux*]
|
||||
|| [istarget *-*-gnu*] } {
|
||||
foreach i $gcc_gas_flag {
|
||||
set flags "additional_flags=$i $flags"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#strip: -R .text -R .data -R .bss -R .ARM.attributes -R .reginfo -R .pdr -R .xtensa.info
|
||||
#readelf: -S --wide
|
||||
#name: strip empty file
|
||||
#target: *-*-linux*
|
||||
#target: *-*-linux* *-*-gnu*
|
||||
|
||||
#...
|
||||
\[[ 0]+\][ \t]+NULL[ \t]+.*
|
||||
|
||||
Reference in New Issue
Block a user