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

* Re: [PATCH] ia64 vDSO vs --build-id
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Denys Vlasenko @ 2007-10-19 10:28 UTC (permalink / raw)
  To: Roland McGrath
  Cc: Andrew Morton, linux-kernel, linux-ia64, tony.luck, Doug Chapman

On Thursday 18 October 2007 23:11, Roland McGrath wrote:
> 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.

I wonder why we bother having --build-id.
--
vda

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

* Re: [PATCH] ia64 vDSO vs --build-id
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Doug Chapman @ 2007-10-25 16:08 UTC (permalink / raw)
  To: Roland McGrath; +Cc: Andrew Morton, linux-kernel, linux-ia64, tony.luck

On Thu, 2007-10-18 at 15:11 -0700, Roland McGrath wrote:
> 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;
>  }
>  
> -

Any news on this?  It does not appear to have been commited to git.
This issue is blocking our bringup of Fedora on ia64.  The Fedora gcc
uses the --build-id option by default leading to a hang during bootup
without this patch.

thanks,

- Doug



^ 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