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: RFC: STO_COPY again: Re: Copy relocation and protected symbol don't work together


> Since ld doesn't know if protected symbols will be involved or
> not at the run-time, are you suggesting ld should disallow copy
> relocation or DT_TEXTREL for all dynamic executables in order to
> properly support protected symbols? I don't think it is a good idea.

No, I was suggesting it only for symbols that can be seen at link time to
have STV_PROTECTED.  That does not address runtime shared objects that use
STV_PROTECTED for symbols that were not protected at link time.

Basically, I think that anyone using STV_PROTECTED for mutable data items
is asking for trouble and can't necessarily get what he intends.  Your
solution seems workable, but I am not really convinced that it is a mode of
use that is worth supporting rather than actively discouraging.


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