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]
Other format: [Raw text]

Re: PATCH: Add STO_COPY


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


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