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

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 13:58:38 PDT 2017


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


More information about the llvm-commits mailing list