mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
[Object] Add SF_Exported flag. This flag will be set on all symbols that would
be exported from a dylib if their containing object file were linked into one. No test case: No command line tools query this flag, and there are no Object unit tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226217 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -478,6 +478,9 @@ uint32_t MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const {
|
||||
if (Value && Value != UnknownAddressOrSize)
|
||||
Result |= SymbolRef::SF_Common;
|
||||
}
|
||||
|
||||
if (!(MachOType & MachO::N_PEXT))
|
||||
Result |= SymbolRef::SF_Exported;
|
||||
}
|
||||
|
||||
if (MachOFlags & (MachO::N_WEAK_REF | MachO::N_WEAK_DEF))
|
||||
|
Reference in New Issue
Block a user