mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-30 13:47:32 +00:00
COFF: Do not handle __NULL_IMPORT_DESCRIPTOR differently than the other symbols.
__NULL_IMPORT_DESCRIPTOR is a symbol used by MSVC liner to construct the import descriptor table. We do not use the symbol. Previously, we had code to skip that symbol. That code does not actually do anything meaningful because no one is referencing the symbol, the symbol would naturally be ignored. This patch stops recognizing the symbol. llvm-svn: 245280
This commit is contained in:
parent
04b7f51250
commit
95b781d863
@ -63,13 +63,8 @@ void ArchiveFile::parse() {
|
||||
LazySymbols.reserve(NumSyms);
|
||||
|
||||
// Read the symbol table to construct Lazy objects.
|
||||
uint32_t I = 0;
|
||||
for (const Archive::Symbol &Sym : File->symbols()) {
|
||||
auto *B = new (&Buf[I++]) Lazy(this, Sym);
|
||||
// Skip special symbol exists in import library files.
|
||||
if (B->getName() != "__NULL_IMPORT_DESCRIPTOR")
|
||||
LazySymbols.push_back(B);
|
||||
}
|
||||
for (const Archive::Symbol &Sym : File->symbols())
|
||||
LazySymbols.push_back(new (Buf++) Lazy(this, Sym));
|
||||
|
||||
// Seen is a map from member files to boolean values. Initially
|
||||
// all members are mapped to false, which indicates all these files
|
||||
|
Loading…
x
Reference in New Issue
Block a user