[parisc-linux] Get rid of %r8 linker stubs

willy@thepuffingroup.com willy@thepuffingroup.com
Tue, 4 Jul 2000 10:21:54 -0400


On Fri, Jun 23, 2000 at 11:45:16AM +1000, Alan Modra wrote:
> No, gcc doesn't need to be rebuilt.  The problem here (I think - I'm going
> to build a kernel in a the moment) is the silly use of "ld -r" in the
> kernel build process.  This has the unfortunate effect of concatenating
> all the .text sections, making some too large for a branch to reach its
> stub section.  Of course this same thing can happen with very large object
> files.
> 
> One fairly simple work-around is to use -ffunction-sections when compiling,
> as then you need a truely enormous function (> 4*2**(17-1) bytes long)
> before you'll get "cannot reach stub"  Also, gcc has support for handling
> even these enormous functions.

how about 
  --split-by-reloc COUNT      Split output sections every COUNT relocs
would that help?

-- 
The Sex Pistols were revolutionaries.  The Bay City Rollers weren't.