We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c062af commit aedc81bCopy full SHA for aedc81b
lld/ELF/LTO.cpp
@@ -254,9 +254,8 @@ void BitcodeCompiler::add(BitcodeFile &f) {
254
usedStartStop.count(objSym.getSectionName());
255
// Identify symbols exported dynamically, and that therefore could be
256
// referenced by a shared library not visible to the linker.
257
- r.ExportDynamic =
258
- sym->computeBinding(ctx) != STB_LOCAL &&
259
- (ctx.arg.exportDynamic || sym->exportDynamic || sym->inDynamicList);
+ r.ExportDynamic = sym->computeBinding(ctx) != STB_LOCAL &&
+ (ctx.arg.exportDynamic || sym->exportDynamic);
260
const auto *dr = dyn_cast<Defined>(sym);
261
r.FinalDefinitionInLinkageUnit =
262
(isExec || sym->visibility() != STV_DEFAULT) && dr &&
0 commit comments