diff options
Diffstat (limited to 'lld/ELF/Symbols.h')
-rw-r--r-- | lld/ELF/Symbols.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index e2a543c08cf..8556452dbb1 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -123,8 +123,16 @@ protected: const unsigned SymbolKind : 8; unsigned IsWeak : 1; unsigned Visibility : 2; + + // True if the symbol was used for linking and thus need to be + // added to the output file's symbol table. It is usually true, + // but if it is a shared symbol that were not referenced by anyone, + // it can be false. unsigned IsUsedInRegularObj : 1; + + // If true, the symbol is added to .dynsym symbol table. unsigned IsUsedInDynamicReloc : 1; + unsigned IsTls : 1; StringRef Name; Symbol *Backref = nullptr; |