2011-05-03 Paul Brook <paul@codesourcery.com>
-
* ld-tic6x/ehtype-reloc-1-rel.d: New test.
* ld-tic6x/ehtype-reloc-1.d: New test.
* ld-tic6x/ehtype-reloc-1.s: New test.
#objcopy_linked_file: --set-section-flags .post_text_reserve=contents,alloc,load,readonly,code
#readelf: -l --wide
#xfail: "avr-*-*" "dlx-*-*" "h8300-*-*" "i960-*-*" "ip2k-*-*" "m32r-*-*"
-#xfail: "moxie-*-*" "mt-*-*" "msp430-*-*" "tic6x-*-*"
+#xfail: "moxie-*-*" "mt-*-*" "msp430-*-*"
#xfail: "*-*-hpux*" "hppa*64*-*-*"
-# Fails on the AVR, DLX, H8300, I960, IP2K, M32R, MOXIE, MT, MSP430 and
-# TI C6X because the two sections are not merged into one segment.
+# Fails on the AVR, DLX, H8300, I960, IP2K, M32R, MOXIE, MT, and MSP430
+# because the two sections are not merged into one segment.
# (There is no good reason why they have to be).
# Fails on HPUX systems because the .type pseudo-op behaves differently.
# Fails on hppa64 because a PHDR is always added.
# Test weak symbols.
# By Ian Lance Taylor, Cygnus Solutions.
-# Copyright 1999, 2000, 2002, 2004, 2005, 2006, 2007, 2009
+# Copyright 1999, 2000, 2002, 2004, 2005, 2006, 2007, 2009, 2011
# Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
set testname "weak symbols"
-# This test only works for ELF targets.
+# This test only works for ELF targets and some PE targets.
# It ought to work for some a.out targets, but it doesn't.
if {! [is_elf_format] && ! [is_pecoff_format]} {
unsupported $testname
return
}
-# Weak symbols are broken for non-i386 PE targets.
-if {! [istarget i?86-*-*]} {
+# Weak symbols are broken for most PE targets.
+if {! [istarget i?86-*-*] && ! [istarget sh-*-*]} {
setup_xfail *-*-pe*
- setup_xfail x86_64-*-pe*
}
# hppa64 and or32 are incredibly broken
# Expect script for ld selective linking tests running run_dump_test
-# Copyright 2002, 2005, 2004, 2007 Free Software Foundation, Inc.
+# Copyright 2002, 2005, 2004, 2007, 2011 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
for { set i 0 } { $i < [llength $test_list] } { incr i } {
# We need to strip the ".d", but can leave the dirname.
verbose [file rootname [lindex $test_list $i]]
- setup_xfail "alpha*-*" "am33*-*" "arc*-*" "d30v*-*" "dlx*-*"
+ setup_xfail "am33*-*" "arc*-*" "d30v*-*" "dlx*-*"
setup_xfail "hppa*64-*-*" "i370*-*" "i860*-*" "i960*-*" "ia64*-*"
setup_xfail "m88*-*" "mn10200-*" "mep-*" "or32-*" "pj-*"
run_dump_test [file rootname [lindex $test_list $i]]
}
# These targets do not support selective linking
-if {[istarget "alpha*-*-*"] || [istarget "am33*-*-*"] ||
+if {[istarget "am33*-*-*"] ||
[istarget "arc-*-*"] || [istarget "d30v-*-*"] ||
[istarget "dlx-*-*"] || [istarget "hppa*64*-*-*"] ||
[istarget "i370-*-*"] || [istarget "i860-*-*"] ||
# Test handling of weak undefined symbols
-# Copyright 2001, 2002, 2004, 2005, 2007, 2010
+# Copyright 2001, 2002, 2004, 2005, 2007, 2010, 2011
# Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
setup_xfail *-*-pe*
}
-setup_xfail hppa64-*-* pj-*-*
+setup_xfail pj-*-*
if {! [ld_assemble $as $srcdir/$subdir/weak-undef.s tmpdir/weak-undef.o]} then {
# It's OK if .weak doesn't work on this target.