mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
e274b476de
Previously we would read-modify-write the target bits when processing relocations for the MCJIT. This had the problem that when relocations were processed multiple times for the same object file (as they can be), the result is not idempotent and the values became corrupted. The solution to this is to take any bits used in the destination from the pristine object file as LLVM emitted it. This should fix PR16013 and remote MCJIT on ARM ELF targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182800 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
174 B
LLVM
12 lines
174 B
LLVM
; RUN: %lli_mcjit -remote-mcjit %s > /dev/null
|
|
; XFAIL: mips
|
|
|
|
define i32 @bar() {
|
|
ret i32 0
|
|
}
|
|
|
|
define i32 @main() {
|
|
%r = call i32 @bar( ) ; <i32> [#uses=1]
|
|
ret i32 %r
|
|
}
|