linux-next: powerpc build failure

Stephen Rothwell sfr at canb.auug.org.au
Thu Jun 12 17:05:05 EST 2008


On Thu, 12 Jun 2008 15:03:35 +0930 Alan Modra <amodra at bigpond.net.au> wrote:
>
> On Thu, Jun 12, 2008 at 11:38:19AM +1000, Paul Mackerras wrote:
> > Direct unconditional branches, including procedure calls, can only
> > reach +/- 32MB from the address of the branch on powerpc.  So if the
> > image grows to more than 32MB of text there is a problem unless the
> > linker is smart enough to insert trampolines.  I don't know whether
> > GNU ld is that smart.
> 
> It is, but you need to pass --relax to enable generation of the
> trampolines.

So I tried this (added --relax to LDFLAGS_vmlinux if CONFIG FTRACE was
set) and got this;

/usr/bin/ld: --relax and -r may not be used together

So, I will disable FTRACE on powerpc for now by removing HAVE_FTRACE from
being selected in arch/powerpc/Kconfig.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080612/cb6d012d/attachment.pgp>


More information about the Linuxppc-dev mailing list