We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 438ba3f commit a09d00fCopy full SHA for a09d00f
lld/COFF/InputFiles.cpp
@@ -1038,6 +1038,8 @@ void BitcodeFile::parse() {
1038
fakeSC = &ctx.ltoDataSectionChunk.chunk;
1039
if (objSym.isUndefined()) {
1040
sym = ctx.symtab.addUndefined(symName, this, false);
1041
+ if (objSym.isWeak())
1042
+ sym->deferUndefined = true;
1043
} else if (objSym.isCommon()) {
1044
sym = ctx.symtab.addCommon(this, symName, objSym.getCommonSize());
1045
} else if (objSym.isWeak() && objSym.isIndirect()) {
0 commit comments