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: sh-elf shared library dilemma


On Fri, 9 Feb 2001, Richard Henderson wrote:

> The problem is that ld.so, for REL targets, applies a RELATIVE relocation
> like mem += load_addr.  For RELA targets it applies the relocation as
> mem = load_addr + addend.

What is stopping you from suitably hacking ld.so?  There's no reason why a
RELA target can't peek at memory and do the relocation as mem += load_addr.

Nasty, but one bad turn deserves another. :)

Alan Modra
-- 
Linuxcare.  Support for the Revolution.


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