[lld] r301282 - Export __progname even if a -dynamic-list is given.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 14:06:58 PDT 2017


If you are saying that, if a main program has a function foo and some DSO
that's linked against it also provides foo, then the main executable needs
a GOT entry for foo, then LLD already does that.

On Tue, Apr 25, 2017 at 1:58 PM, Joerg Sonnenberger via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> On Mon, Apr 24, 2017 at 06:21:11PM -0700, Rui Ueyama wrote:
> > I used __progname as an example but it should work for any symbols
> required
> > by DSOs and exported by main executables.
> >
> > What is the case of copy relocations?
>
> The problem is not just undefined references, but (common) definitions
> in the main program also require the symbol to be made exported. Similar
> for non-GOT-safe references to symbols defined in linked libraries.
>
> Joerg
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170425/4037e095/attachment.html>


More information about the llvm-commits mailing list