2006-10-17 11:11:29

by Yi CDL Yang

[permalink] [raw]
Subject: 2.6.19-rc2 has ld error for ppc64

On building 2.6.19-rc2 on ppc64, ld always reports such an error:

".text exceeds stub group size"

...

this patch can make ld happy without any complain.


--- binutils-2.17/bfd/elf64-ppc.c.orig 2006-10-16 23:58:53.000000000 -0400
+++ binutils-2.17/bfd/elf64-ppc.c 2006-10-16 18:43:57.000000000 -0400
@@ -4538,6 +4538,7 @@ ppc64_elf_check_relocs (bfd *abfd, struc
case R_PPC64_REL14_BRTAKEN:
case R_PPC64_REL14_BRNTAKEN:
{
+ htab->has_14bit_branch = 0;
asection *dest = NULL;

/* Heuristic: If jumping outside our section, chances are



2006-10-17 13:28:49

by Alan Modra

[permalink] [raw]
Subject: Re: 2.6.19-rc2 has ld error for ppc64

On Tue, Oct 17, 2006 at 07:11:51PM +0800, Yi CDL Yang wrote:
> On building 2.6.19-rc2 on ppc64, ld always reports such an error:
>
> ".text exceeds stub group size"

This is not an error. It is just a warning that might help explain a
later error. If the linker doesn't give any errors then the warning
may safely be ignored.

--
Alan Modra
IBM OzLabs - Linux Technology Centre

2006-10-18 01:48:11

by Yi CDL Yang

[permalink] [raw]
Subject: Re: 2.6.19-rc2 has ld error for ppc64

Alan Modra 写道:
> On Tue, Oct 17, 2006 at 07:11:51PM +0800, Yi CDL Yang wrote:
>> On building 2.6.19-rc2 on ppc64, ld always reports such an error:
>>
>> ".text exceeds stub group size"
>
> This is not an error. It is just a warning that might help explain a
> later error. If the linker doesn't give any errors then the warning
> may safely be ignored.
>
Many warnings aren't a good thing, we should have a clean build, this
patch should be good.