This is the mail archive of the binutils@sourceware.org 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]

Fix spurious NOCROSSREF 3 failure on ppc64


The test NOCROSSREF 3 fails on ppc64 with gcc 4.2, because there is a
reference in .data pointing to .opd, causing a link failure:

`.opd' referenced in section `.data' of tmpdir/cross3-partial.o: defined in discarded section `.opd' of tmpdir/cross3-partial.o

Before gcc 4.2 the reference was (needlessly) put in .data.rel.local,
which was also discarded.

Andreas.

2007-06-17  Andreas Schwab  <schwab@suse.de>

	* ld-scripts/cross3.t: Add .opd section.

--- ld/testsuite/ld-scripts/cross3.t.~1.1.~	2005-10-04 21:54:08.000000000 +0200
+++ ld/testsuite/ld-scripts/cross3.t	2007-06-17 01:08:33.000000000 +0200
@@ -4,7 +4,7 @@ SECTIONS
 {
   .text : { *(.text) }
   .nocrossrefs : { *(.nocrossrefs) }
-  .data : { *(.data) }
+  .data : { *(.data) *(.opd) }
   .bss : { *(.bss) *(COMMON) }
   /DISCARD/ : { *(*) }
 }

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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