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:
Muhammad Omair Javaid
2020-09-24 12:26:40 +05:00
parent c367f93e85
commit 8112d494d3
7 changed files with 5 additions and 174 deletions

View File

@@ -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;
}