This is the mail archive of the
mailing list for the binutils project.
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
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.
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.
Australia Development Lab, IBM