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

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/ : { *(*) }


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

* Re: [PATCH] ia64: check-segrel.lds vs --build-id
  2007-10-18 19:54 [PATCH] ia64: check-segrel.lds vs --build-id Roland McGrath
@ 2007-10-19 10:33 ` Denys Vlasenko
  2007-10-25 16:10 ` Doug Chapman
  1 sibling, 0 replies; 3+ messages in thread
From: Denys Vlasenko @ 2007-10-19 10:33 UTC (permalink / raw)
  To: Roland McGrath; +Cc: Andrew Morton, Doug Chapman, linux-kernel, linux-ia64

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

It's fixed in newer ld (not released yet IIRC), but why
are we shooting ourself in the foot by adding --build-id,
and then suffering from --build-id related problems?
--
vda

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

* Re: [PATCH] ia64: check-segrel.lds vs --build-id
  2007-10-18 19:54 [PATCH] ia64: check-segrel.lds vs --build-id Roland McGrath
  2007-10-19 10:33 ` Denys Vlasenko
@ 2007-10-25 16:10 ` Doug Chapman
  1 sibling, 0 replies; 3+ messages in thread
From: Doug Chapman @ 2007-10-25 16:10 UTC (permalink / raw)
  To: Roland McGrath; +Cc: Andrew Morton, linux-kernel, linux-ia64

On Thu, 2007-10-18 at 12:54 -0700, Roland McGrath wrote:
> 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/ : { *(*) }
> 
> -

This patch is not yet in the git tree.  This, along with the patch to
gate.lds.S that Roland submitted are both blocking our bringup of Fedora
on ia64.

thanks,

- Doug



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

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

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

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