Rafael Espindola
cdb2a15d9d
Don't pass relocation-model= to tests that don't need it.
...
Very few things in MC itself use the option. Most of the code that that
uses it could be move to CodeGen.
llvm-svn: 269871
2016-05-18 00:27:17 +00:00
Lang Hames
3db630b5e7
[RuntimeDyld][AArch64] Add support for the MachO ARM64_RELOC_SUBTRACTOR reloc.
...
llvm-svn: 258438
2016-01-21 21:59:50 +00:00
Lang Hames
0fd3610e6d
[RuntimeDyld][AArch64] Add explicit addends before calling relocationValueRef.
...
relocationValueRef uses the addend, so it has to be set before the call.
llvm-svn: 244574
2015-08-11 06:27:53 +00:00
Lang Hames
41d95947cf
[MCJIT] Defer application of AArch64 MachO GOT relocations until resolve time.
...
On AArch64, GOT references are page relative (ADRP + LDR), so they can't be
applied until we know exactly where, within a page, the GOT entry will be in
the target address space.
Fixes <rdar://problem/18693976>.
llvm-svn: 220347
2014-10-21 23:41:15 +00:00
Lang Hames
2d0d096bd1
[MCJIT] Temporarily revert r220245 - it broke several bots.
...
(See e.g. http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/17653 )
llvm-svn: 220249
2014-10-21 00:24:02 +00:00
Lang Hames
84801c217c
[MCJIT] Make MCJIT honor symbol visibility settings when populating the global
...
symbol table.
Patch by Anthony Pesch. Thanks Anthony!
llvm-svn: 220245
2014-10-20 23:39:54 +00:00
Daniel Sanders
36a3e69bd4
[mips] Remove XFAIL from two XPASS'ing tests on the llvm-mips-linux builder
...
llvm-svn: 218967
2014-10-03 08:49:44 +00:00
Lang Hames
3ce5baefce
[MCJIT] XFAIL some RuntimeDyld tests on MIPS - RuntimeDyldChecker isn't properly
...
endian-aware yet, and this is causing failures when cross-linking on MIPS.
llvm-svn: 214231
2014-07-29 21:48:22 +00:00
Lang Hames
480763f814
[MCJIT] Make the RuntimeDyldChecker stub_addr builtin use file names rather than
...
full paths for its first argument.
This allows us to remove the annoying sed lines in the test cases, and write
direct references to file names in stub_addr calls (rather than <filename>
placeholders).
llvm-svn: 214211
2014-07-29 20:40:37 +00:00
Juergen Ributzka
0e913b17d6
[RuntimeDyld][AArch64] Make encode/decodeAddend also work on big-endian hosts.
...
llvm-svn: 214205
2014-07-29 19:57:15 +00:00
Lang Hames
1f638440c6
[MCJIT] Remove extraneous parentheses in test case.
...
llvm-svn: 214117
2014-07-28 21:00:48 +00:00
Juergen Ributzka
fa154f03d1
[RuntimeDyld][AArch64] Update relocation tests and also add a simple GOT test.
...
llvm-svn: 213807
2014-07-23 22:23:17 +00:00
Juergen Ributzka
7325ac39b6
XFAIL the test on MIPS
...
Not sure how to debug this one without a MIPS machine. Any takers?
llvm-svn: 213705
2014-07-22 23:15:01 +00:00
Juergen Ributzka
f560928889
[RuntimeDyld][MachO][AArch64] Add a helper function for encoding addends in instructions.
...
Factor out the addend encoding into a helper function and simplify the
processRelocationRef.
Also add a few simple rtdyld tests. More tests to come once GOTs can be tested too.
Related to <rdar://problem/17768539>
llvm-svn: 213689
2014-07-22 21:42:55 +00:00