This is the mail archive of the 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]

.IA64_unwind* and ld -r

There is a problem with the handling of .IA64_unwind* sections and "ld
-r".  The linker scripts folds them into single .IA64_unwind and
.IA64_unwind_info sections.  But that makes it impossible to discard
sections at the final link, because the .IA64_unwind section might have
references to the discarded sections (this happens when building the Linux
kernel with gcc 3.0).  The linker should not fold the sections in a
relocatable link.

OK for mainline and branch?


2002-02-19  Andreas Schwab  <>

	* emulparams/ (OTHER_READONLY_SECTIONS): Don't fold
	.IA64_unwind* in a relocatable link.

--- ld/emulparams/	Wed Feb 13 10:50:40 2002
+++ ld/emulparams/	Tue Feb 19 14:52:25 2002
@@ -21,5 +21,5 @@
   .rela.IA_64.pltoff ${RELOCATING-0} : { *(.rela.IA_64.pltoff) }"
   .opd          ${RELOCATING-0} : { *(.opd) }
-  .IA_64.unwind_info ${RELOCATING-0} : { *(.IA_64.unwind_info*${RELOCATING+ .gnu.linkonce.ia64unwi.*}) }
-  .IA_64.unwind ${RELOCATING-0} : { *(.IA_64.unwind*${RELOCATING+ .gnu.linkonce.ia64unw.*}) }"
+  .IA_64.unwind_info ${RELOCATING-0} : { *(.IA_64.unwind_info${RELOCATING+* .gnu.linkonce.ia64unwi.*}) }
+  .IA_64.unwind ${RELOCATING-0} : { *(.IA_64.unwind${RELOCATING+* .gnu.linkonce.ia64unw.*}) }"

Andreas Schwab, SuSE Labs,
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
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]