This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Mark __start/__stop symbols as PROTECTED in dll
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Tue, 15 Aug 2017 04:03:01 -0700
- Subject: Re: [PATCH] Mark __start/__stop symbols as PROTECTED in dll
- Authentication-results: sourceware.org; auth=none
- References: <20170814222948.GA24852@gmail.com>
On Mon, Aug 14, 2017 at 3:29 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> When building shared objects, mark __start and __stop symbols as
> PROTECTED to support dlsym. Also override __start, __stop, .startof.
> and .sizeof. symbols defined in a shared object.
>
> OK for master?
>
>
> H.J.
> ---
> bfd/
>
> PR ld/21964
> * elflink.c (_bfd_elf_symbol_refs_local_p): Return TRUE for
> __start/__stop symbols.
> (bfd_elf_define_start_stop): Override symbol defined in a
> shared object. Mark __start/__stop symbols as PROTECTED in dll.
The current patch is:
https://sourceware.org/ml/binutils/2017-08/msg00169.html
--
H.J.