[PATCH] ia64: check-segrel.lds vs --build-id

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Doug Chapman <dchapman@...>, <linux-kernel@...>, <linux-ia64@...>
Date: Thursday, October 18, 2007 - 3:54 pm

Some versions of ld with --build-id support will crash when using the flag
with a linker script that discards notes.  This bites ia64's check-segrel.lds.
The bug is easy to avoid.

Signed-off-by: Roland McGrath <roland@redhat.com>

--- a/arch/ia64/scripts/check-segrel.lds
+++ b/arch/ia64/scripts/check-segrel.lds
@@ -1,6 +1,7 @@
 SECTIONS {
 	. = SIZEOF_HEADERS;
 	.rodata : { *(.rodata) } :ro
+	.note : { *(.note*) }
 	. = 0xa0000;
 	.data : { *(.data) } :dat
 	/DISCARD/ : { *(*) }

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ia64: check-segrel.lds vs --build-id, Roland McGrath, (Thu Oct 18, 3:54 pm)
Re: [PATCH] ia64: check-segrel.lds vs --build-id, Doug Chapman, (Thu Oct 25, 12:10 pm)
Re: [PATCH] ia64: check-segrel.lds vs --build-id, Denys Vlasenko, (Fri Oct 19, 6:33 am)