[PATCH] D113167: [lld-macho] Allow exporting weak def private-extern symbols.

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 4 13:41:51 PDT 2021


oontvoo added a comment.

In D113167#3109843 <https://reviews.llvm.org/D113167#3109843>, @smeenai wrote:

> 



> In your `can_be_hidden.cc` example, why does LLD think `foo` is privateExtern to begin with? It's not marked that way in the object file (as confirmed with `nm -m`). That potentially seems like the actual issue here.

Because createDefined() in InputFiles "promote" it to privateExtern :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113167/new/

https://reviews.llvm.org/D113167



More information about the llvm-commits mailing list