[PATCH] powerpc: Fix compile error with binutils 2.15

Chuck Meade chuckmeade at mindspring.com
Fri Jul 25 10:51:02 EST 2008


Segher Boessenkool wrote:
> My previous patch to fix compilation with binutils-2.17 causes
> a "file truncated" build error from ld with binutils 2.15 (and
> possibly older), and a warning with 2.16 and 2.17.
> 
> This fixes it.
> 
> Signed-off-by: Segher Boessenkool <segher at kernel.crashing.org>

Hi Segher,

That fixes it!  Thanks very much for that.

Best regards,
Chuck

Acked-by: Chuck Meade <chuckmeade at mindspring.com>

> ---
>  arch/powerpc/kernel/vmlinux.lds.S |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
> index a914411..4a8ce62 100644
> --- a/arch/powerpc/kernel/vmlinux.lds.S
> +++ b/arch/powerpc/kernel/vmlinux.lds.S
> @@ -85,7 +85,7 @@ SECTIONS
>  
>  	/* The dummy segment contents for the bug workaround mentioned above
>  	   near PHDRS.  */
> -	.dummy : {
> +	.dummy : AT(ADDR(.dummy) - LOAD_OFFSET) {
>  		LONG(0xf177)
>  	} :kernel :dummy
>  




More information about the Linuxppc-dev mailing list