This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: sh-elf shared library dilemma
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: sh-elf shared library dilemma
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Sat, 10 Feb 2001 13:19:12 +1100 (EST)
- cc: binutils at sources dot redhat dot com
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.