This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linker problem: relocation truncated to fit


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]