Skip to contentSkip to conversation

Bug in linker script

Linux-ia64 Andreas Schwab 2 participants 2 messages Feb 20, 2002

lore
Share & tools
lore
#0 lore raw

The linker script for linking vmlinux is discarding the .text.exit section, but not the corresponding .IA64_unwind.text.exit and .IA64_unwind_info.text.exit sections. This can cause dangling relocations when compiling with gcc3.

Andreas.

arch/ia64/vmlinux.lds.S renamed from arch/ia64/vmlinux.lds.S.~1~ +2 -0
@@ -13,6 +13,8 @@
 	*(.text.exit)
 	*(.data.exit)
 	*(.exitcall.exit)
+	*(.IA_64.unwind.text.exit)
+	*(.IA_64.unwind_info.text.exit)
 	}
 
   v = PAGE_OFFSET;	/* this symbol is here to make debugging easier... */
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
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."
#1 lore raw
Quoted 10 lines · Andreas Schwab

The linker script for linking vmlinux is discarding the .text.exit section, but not the corresponding .IA64_unwind.text.exit and .IA64_unwind_info.text.exit sections. This can cause dangling relocations when compiling with gcc3.

Andreas.

arch/ia64/vmlinux.lds.S line 19

Quoted 7 lines
arch/ia64/vmlinux.lds.S renamed from arch/ia64/vmlinux.lds.S.~1~ +2 -0
@@ -13,6 +13,8 @@
 	*(.text.exit)
 	*(.data.exit)
 	*(.exitcall.exit)
+	*(.IA_64.unwind.text.exit)
+	*(.IA_64.unwind_info.text.exit)
 	}
 

One *(*.text.exit) line would be better - untested.