linker problem: relocation truncated to fit

Jakub Jelinek jakub@redhat.com
Tue Sep 18 10:18:00 GMT 2001


On Tue, Sep 18, 2001 at 10:02:35AM -0700, Richard Henderson wrote:
> On Tue, Sep 18, 2001 at 03:32:33PM +0200, Marc Espie wrote:
> > The next step would be to try and reorder relocations so that the
> > -fpic stuff is nearer the GOT. Then the -fPIC stuff can overflow
> > without harming the -fpic part.
> > 
> > Of course, I haven't checked the gnu linker recently. Maybe it already
> > implements that ?
> 
> Nope.

Nope, but it wouldn't be hard to add it if people think this is common
situation. It would probably require sparc elf_link_hash_table to keep track
on how many got entries are of which type, got.offset resp.
local_got_offsets could be assigned e.g. values | 2 for
GOT{10,22} relocs and they'd be translated once got was finalized.

	Jakub



More information about the Binutils mailing list