This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: .gnu.warning.foo interferes with archive-member rules
* ld-elf/elf.exp: Don't attempt to build symbol3.a for hppa64-hpux.
* ld-elf/warn3.d: Correct target selection and comment.
Index: ld/testsuite/ld-elf/elf.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/elf.exp,v
retrieving revision 1.24
diff -u -p -r1.24 elf.exp
--- ld/testsuite/ld-elf/elf.exp 10 Jun 2011 14:04:24 -0000 1.24
+++ ld/testsuite/ld-elf/elf.exp 13 Jun 2011 01:26:59 -0000
@@ -40,13 +40,15 @@ if { [is_remote host] } then {
remote_download host merge.ld
}
-run_ld_link_tests {
- {"Build symbol3.a"
- "" ""
- {symbol3.s} {} "symbol3.a"}
- {"Build symbol3w.a"
- "" ""
- {symbol3w.s} {} "symbol3w.a"}
+if { ![istarget hppa64*-hpux*] } {
+ run_ld_link_tests {
+ {"Build symbol3.a"
+ "" ""
+ {symbol3.s} {} "symbol3.a"}
+ {"Build symbol3w.a"
+ "" ""
+ {symbol3w.s} {} "symbol3w.a"}
+ }
}
# Run a test to check linking a shared library with a broken linker
Index: ld/testsuite/ld-elf/warn3.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/warn3.d,v
retrieving revision 1.1
diff -u -p -r1.1 warn3.d
--- ld/testsuite/ld-elf/warn3.d 8 Jun 2011 04:47:04 -0000 1.1
+++ ld/testsuite/ld-elf/warn3.d 13 Jun 2011 01:26:59 -0000
@@ -2,10 +2,9 @@
#ld: tmpdir/symbol3w.o tmpdir/symbol3.a
#warning: .*: warning: badsym warning$
#readelf: -s
-#notarget: "sparc64-*-solaris2*" "sparcv9-*-solaris2*"
-#xfail: arc-*-* d30v-*-* dlx-*-* fr30-*-* frv-*-elf i860-*-* i960-*-*
-#xfail: iq*-*-* mn10200-*-* moxie-*-* msp*-*-* mt-*-* or32-*-* pj*-*-*
-# if not using elf32.em, you don't get fancy section handling
+#notarget: hppa64*-hpux*
+#xfail: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
+# generic linker targets don't support .gnu.warning sections.
# Check that warnings are generated for the symbols in .gnu.warning
# construct and that the symbol still appears as expected.
--
Alan Modra
Australia Development Lab, IBM