Index: lib/ReaderWriter/ELF/ELFFile.h =================================================================== --- lib/ReaderWriter/ELF/ELFFile.h +++ lib/ReaderWriter/ELF/ELFFile.h @@ -682,7 +682,7 @@ // Create an anonymous atom to hold the data. ELFDefinedAtom *anonAtom = nullptr; anonFollowedBy = nullptr; - if (symbol->getBinding() == llvm::ELF::STB_WEAK && contentSize != 0) { + if (symbol->getBinding() == llvm::ELF::STB_WEAK) { // Create anonymous new non-weak ELF symbol that holds the symbol // data. auto sym = new (_readerStorage) Elf_Sym(*symbol);