No all symbols in .addrsig table have definitions. So, setting them as weak to avoid undefined symbol error during linking.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Wouldn't this make all address significant symbols weak external?
The intent is that we don't emit additional symbols if the address significance table is enabled (see e.g. the call to GV.use_empty() before calling emitAddrsigSym in llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp). If you're still seeing undefined symbols with that, I think we need to make that condition more powerful instead.