public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ia64 vDSO vs --build-id
@ 2007-10-18 22:11 Roland McGrath
  2007-10-19 10:28 ` Denys Vlasenko
  2007-10-25 16:08 ` Doug Chapman
  0 siblings, 2 replies; 3+ messages in thread
From: Roland McGrath @ 2007-10-18 22:11 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linux-ia64, tony.luck, Doug Chapman

When gcc uses --build-id by default, the gate.lds.S linker script runs afoul
of the new note section and produces a bad DSO image.  This fixes it.

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

--- a/arch/ia64/kernel/gate.lds.S
+++ b/arch/ia64/kernel/gate.lds.S
@@ -20,6 +20,8 @@ SECTIONS
 	.gnu.version_d		: { *(.gnu.version_d) }
 	.gnu.version_r		: { *(.gnu.version_r) }
 
+	.note			: { *(.note*) }		:readable	:note
+
 	.dynamic		: { *(.dynamic) }	:readable	:dynamic
 
 	/*
@@ -83,6 +85,7 @@ PHDRS
 	epc		PT_LOAD	FILEHDR PHDRS	FLAGS(1);	/* PF_X */
 #endif
 	dynamic		PT_DYNAMIC		FLAGS(4);	/* PF_R */
+	note		PT_NOTE			FLAGS(4);	/* PF_R */
 	unwind		PT_IA_64_UNWIND;
 }
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-25 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-18 22:11 [PATCH] ia64 vDSO vs --build-id Roland McGrath
2007-10-19 10:28 ` Denys Vlasenko
2007-10-25 16:08 ` Doug Chapman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox