mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Revert "[lld-macho] Initial support for common symbols"
This reverts commit 63ace77962.
Breaks LLDB Arm build:
http://lab.llvm.org:8011/builders/lldb-arm-ubuntu/builds/4409
This commit is contained in:
@@ -243,12 +243,10 @@ void InputFile::parseSymbols(ArrayRef<structs::nlist_64> nList,
|
||||
for (size_t i = 0, n = nList.size(); i < n; ++i) {
|
||||
const structs::nlist_64 &sym = nList[i];
|
||||
|
||||
if ((sym.n_type & N_TYPE) == N_UNDF) {
|
||||
// Undefined symbol
|
||||
if (!sym.n_sect) {
|
||||
StringRef name = strtab + sym.n_strx;
|
||||
symbols[i] = sym.n_value == 0
|
||||
? symtab->addUndefined(name)
|
||||
: symtab->addCommon(name, this, sym.n_value,
|
||||
1 << GET_COMM_ALIGN(sym.n_desc));
|
||||
symbols[i] = symtab->addUndefined(name);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user