This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ld/testsuite fixes


Hmm, the generic linker doesn't complain about references to removed
sections.  Rather than fixing it, I'm xfailing the test.  These
targets don't support shared libs and other ELF goodies, so this isn't
a big deal.

The change to ld-discard/extern.d is to support ELF targets that don't
have shared lib support, and thus are allowed to reduce a reloc on a
global sym to a section sym.

ld/testsuite/ChangeLog
	* ld-discard/discard.exp: xfail targets using generic linker.
	* ld-discard/extern.d: Allow "data" to be reduced to a section sym.

Index: ld/testsuite/ld-discard/discard.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-discard/discard.exp,v
retrieving revision 1.3
diff -u -p -r1.3 discard.exp
--- ld/testsuite/ld-discard/discard.exp	10 Aug 2002 12:48:52 -0000	1.3
+++ ld/testsuite/ld-discard/discard.exp	15 Aug 2002 12:30:37 -0000
@@ -40,5 +40,7 @@ set test_list [lsort [glob -nocomplain $
 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]]
+    # These fail because they use the generic linker.
+    setup_xfail "arc-*" "d30v-*" "dlx-*" "i960-*" "or32-*" "pj-*"
     run_dump_test [file rootname [lindex $test_list $i]]
 }
Index: ld/testsuite/ld-discard/extern.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-discard/extern.d,v
retrieving revision 1.1
diff -u -p -r1.1 extern.d
--- ld/testsuite/ld-discard/extern.d	10 Nov 2001 01:17:57 -0000	1.1
+++ ld/testsuite/ld-discard/extern.d	15 Aug 2002 12:30:37 -0000
@@ -1,3 +1,3 @@
 #source: extern.s
 #ld: -T $srcdir/$subdir/discard.ld
-#error: undefined reference to `data'
+#error: undefined reference to `(data|local symbols in discarded section \.data\.exit)'

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]