PATCH: Add STO_COPY

Daniel Jacobowitz drow@mvista.com
Fri Apr 4 03:16:00 GMT 2003


On Thu, Apr 03, 2003 at 05:15:46PM -0800, H. J. Lu wrote:
> The copy relocation doesn't work with protected symbols:
> 
> http://sources.redhat.com/ml/binutils/2003-03/msg00413.html
> 
> I'd like to take the STO_COPY approach. Its advantage is it is binary
> compatible with the existing ld.so. The only drawback is the st_other
> field is very limited. I chose 0x80 which has been used in binutils
> by alpha and m68hc11. It is not the case we take one away from the
> future gABI change. I will check it in if I haven't heard any strong
> objections by next Monday.

At least Alpha has a copy relocation.  Stealing a bit already used by
Alpha sounds like an unwise choice.  There is no reason that this fix
should be i386 specific!

Besides, won't this make ld.so behave strangely in some cases on Alpha?


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list