This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Add STO_COPY
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 3 Apr 2003 22:15:53 -0500
- Subject: Re: PATCH: Add STO_COPY
- References: <20030403171546.A18590@lucon.org>
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