1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/lib
Ulrich Weigand 1c8e58ce82 [RuntimeDyld, PowerPC] Fix check for external symbols when detecting reloction overflow
The PowerPC part of processRelocationRef currently assumes that external
symbols can be identified by checking for SymType == SymbolRef::ST_Unknown.
This is actually incorrect in some cases, causing relocation overflows to
be mis-detected. The correct check is to test whether Value.SymbolName
is null.

Includes test case. Note that it is a bit tricky to replicate the exact
condition that triggers the bug in a test case. The one included here
seems to fail reliably (before the fix) across different operating
system versions on Power, but it still makes a few assumptions (called
out in the test case comments).

Also add ppc64le platform name to the supported list in the lit.local.cfg
files for the MCJIT and OrcMCJIT directories, since those tests were
currently not run at all.

Fixes PR32650.

Reviewer: hfinkel

Differential Revision: https://reviews.llvm.org/D33402

llvm-svn: 303637
2017-05-23 14:51:18 +00:00
..
Analysis
AsmParser
Bitcode
CodeGen [AArch64] Make instruction fusion more aggressive. 2017-05-23 09:33:34 +00:00
DebugInfo libDebugInfo: Support symbolizing using DWP files 2017-05-23 06:48:53 +00:00
Demangle
ExecutionEngine [RuntimeDyld, PowerPC] Fix check for external symbols when detecting reloction overflow 2017-05-23 14:51:18 +00:00
Fuzzer
IR
IRReader
LineEditor
Linker
LTO
MC
Object
ObjectYAML
Option
Passes
ProfileData
Support Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through. 2017-05-23 01:20:52 +00:00
TableGen
Target [AMDGPU] SDWA: Add assembler support for GFX9 2017-05-23 10:08:55 +00:00
ToolDrivers
Transforms [JumpThreading] Safely replace uses of condition 2017-05-23 13:36:25 +00:00
XRay
CMakeLists.txt
LLVMBuild.txt