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

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 18:21:11 PDT 2017


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?

On Mon, Apr 24, 2017 at 6:00 PM, Joerg Sonnenberger via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> On Tue, Apr 25, 2017 at 12:15:48AM -0000, Rui Ueyama via llvm-commits
> wrote:
> > But it turned out that setting that variable is not enough to make sure
> > that symbols are exported in all use cases. If a -dynamic-list option is
> > given, all symbols not explicitly mentioned in a version script are
> > hidden by default. That hides __progname symbol. This patch fixes the
> issue.
>
> That sounds like a real bug. __progname is not the only case in which
> this can happen. What about any variable that triggers copy relocations?
>
> 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/20170424/5ee0002e/attachment.html>


More information about the llvm-commits mailing list