diff options
| author | Shankar Easwaran <shankare@codeaurora.org> | 2015-03-20 23:47:08 +0000 |
|---|---|---|
| committer | Shankar Easwaran <shankare@codeaurora.org> | 2015-03-20 23:47:08 +0000 |
| commit | 37d5add8a33d4b0868ace2e057a28c0e6dce3704 (patch) | |
| tree | cd62d0d8d3ce7e4cc33891cf0b5e0c04c9682b33 /lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h | |
| parent | 14726cd11b8727a569917475bbffa4b09f94148c (diff) | |
| download | bcm5719-llvm-37d5add8a33d4b0868ace2e057a28c0e6dce3704.tar.gz bcm5719-llvm-37d5add8a33d4b0868ace2e057a28c0e6dce3704.zip | |
[ELF] GLOBAL_OFFSET_TABLE is a hidden symbol
llvm-svn: 232868
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h b/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h index 3ca4aac129b..f97514b525c 100644 --- a/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h +++ b/lld/lib/ReaderWriter/ELF/DynamicLibraryWriter.h @@ -51,7 +51,7 @@ void DynamicLibraryWriter<ELFT>::buildDynamicSymbolTable(const File &file) { if (auto section = dyn_cast<AtomSection<ELFT>>(sec)) for (const auto &atom : section->atoms()) { const DefinedAtom *da = dyn_cast<const DefinedAtom>(atom->_atom); - if (da && (da->scope() != DefinedAtom::scopeTranslationUnit)) + if (da && (da->scope() == DefinedAtom::scopeGlobal)) this->_dynamicSymbolTable->addSymbol(atom->_atom, section->ordinal(), atom->_virtualAddr, atom); } |

