[RuntimeDyld] Ignore ST_FILE symbols when constructing GlobalSymbolTable
authorKeno Fischer <kfischer@college.harvard.edu>
Wed, 21 Oct 2015 20:22:04 +0000 (20:22 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Wed, 21 Oct 2015 20:22:04 +0000 (20:22 +0000)
commitddad187ce79305cd81fbe9d046de32e05836e134
tree74529478c18634fa998479c1e8e3cbcd5f524404
parentdccad5b9c3406f4135e92970134a6b4ae5889cc3
[RuntimeDyld] Ignore ST_FILE symbols when constructing GlobalSymbolTable

Summary: ELF's STT_File symbols may overlap with regular globals in
other files, so we should ignore them here in order to avoid having
bogus entries in the symbol table that confuse us when resolving relocations.

Reviewers: lhames

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D13888

llvm-svn: 250942
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF_STT_FILE.s [new file with mode: 0644]
llvm/test/ExecutionEngine/RuntimeDyld/X86/Inputs/ELF_STT_FILE_FILE.s [new file with mode: 0644]
llvm/test/ExecutionEngine/RuntimeDyld/X86/Inputs/ELF_STT_FILE_GLOBAL.s [new file with mode: 0644]