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

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 18:00:44 PDT 2017


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


More information about the llvm-commits mailing list