This is the mail archive of the binutils@sourceware.org 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: Make __start/__stop symbols protected visibility


On Mon, Aug 21, 2017 at 05:29:14AM -0700, H.J. Lu wrote:
> When SYMBOLIC_BIND is set, protected visibility no longer make any
> senses.

I already explained why __start_section and __stop_section symbols
ought to be protected visibility.  You want a symbol that is visible
to other modules but resolves locally.  That is exactly what the gABI
says of protected visibility.

STV_PROTECTED
    A symbol defined in the current component is protected if it is
    visible in other components but not preemptable..

So by making these linker defined symbols protected visibility, the
object itself documents their binding.

-- 
Alan Modra
Australia Development Lab, IBM


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