[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)
commit9e6956041749816a6ec05147c7a41aa866156391
treefa02e688057ef969eb5fd71c3b60e9869f291b76
parent2268dabec51df00b5445e793f5afac2a33ae01a5
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250942 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
test/ExecutionEngine/RuntimeDyld/X86/ELF_STT_FILE.s [new file with mode: 0644]
test/ExecutionEngine/RuntimeDyld/X86/Inputs/ELF_STT_FILE_FILE.s [new file with mode: 0644]
test/ExecutionEngine/RuntimeDyld/X86/Inputs/ELF_STT_FILE_GLOBAL.s [new file with mode: 0644]