sh-elf shared library dilemma

Alan Modra alan@linuxcare.com.au
Fri Feb 9 18:19:00 GMT 2001


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.



More information about the Binutils mailing list