This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
.IA64_unwind* and ld -r
- From: Andreas Schwab <schwab at suse dot de>
- To: binutils at sources dot redhat dot com
- Date: Tue, 19 Feb 2002 15:54:02 +0100
- Subject: .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?
Andreas.
2002-02-19 Andreas Schwab <schwab@suse.de>
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
.IA64_unwind* in a relocatable link.
--- ld/emulparams/elf64_ia64.sh.~1.8.~ Wed Feb 13 10:50:40 2002
+++ ld/emulparams/elf64_ia64.sh Tue Feb 19 14:52:25 2002
@@ -21,5 +21,5 @@
.rela.IA_64.pltoff ${RELOCATING-0} : { *(.rela.IA_64.pltoff) }"
OTHER_READONLY_SECTIONS="
.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, schwab@suse.de
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."