Skip to content

Commit e73a6bd

Browse files
committed
fix: readig symbol table should be done once per file, not per symbol section!
1 parent 94bebe0 commit e73a6bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lld/ELF/InputFiles.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -873,10 +873,9 @@ template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) {
873873
sections[i] = &InputSection::discarded;
874874
} break;
875875
}
876-
877-
// Read a symbol table.
878-
initializeSymbols(obj);
879876
}
877+
// Read a symbol table.
878+
initializeSymbols(obj);
880879
}
881880

882881
// Sections with SHT_GROUP and comdat bits define comdat section groups.

0 commit comments

Comments
 (0)