[PATCH] Mark __start/__stop symbols as PROTECTED in shared object
H.J. Lu
hjl.tools@gmail.com
Tue Aug 15 00:10:00 GMT 2017
On Mon, Aug 14, 2017 at 4:53 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> When building shared objects, mark __start and __stop symbols as
> PROTECTED and bind them as symbolic to support dlsym. Also override
> __start, __stop, .startof. and .sizeof. symbols defined in a shared
> object.
>
> OK for master?
>
> bfd/
>
> PR ld/21964
> * elf-bfd.h (SYMBOLIC_BIND): TRUE for __start/__stop symbols.
> * elflink.c (bfd_elf_define_start_stop): Override symbol defined
> in a shared object. Mark __start/__stop symbols as PROTECTED in
> shared objects.
>
No need to mark them as protected when bind them symbolic.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Bind-__start-__stop-symbols-as-symbolic-in-shared-ob.patch
Type: text/x-patch
Size: 16289 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20170815/0cdcc259/attachment.bin>
More information about the Binutils
mailing list