diff options
| author | Lang Hames <lhames@gmail.com> | 2019-04-20 22:59:43 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2019-04-20 22:59:43 +0000 |
| commit | 65e1ddd713883f9951af5e45a07829ae98654b1a (patch) | |
| tree | b54eb93311082326f3965e21a155c777368eb41f /llvm/lib/ExecutionEngine | |
| parent | 5004abcd86fa28f0907c36b1e93796903a5775cf (diff) | |
| download | bcm5719-llvm-65e1ddd713883f9951af5e45a07829ae98654b1a.tar.gz bcm5719-llvm-65e1ddd713883f9951af5e45a07829ae98654b1a.zip | |
[JITLink] Add yet more detail to MachO/x86-64 unsupported relocation errors.
Knowing the address/symbolnum field values makes it easier to identify the
unsupported relocation, and provides enough information for the full bit
pattern of the relocation to be reconstructed.
llvm-svn: 358833
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp b/llvm/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp index 857885bee10..50bbe4b0c75 100644 --- a/llvm/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp +++ b/llvm/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp @@ -88,7 +88,10 @@ private: } return make_error<JITLinkError>( - "Unsupported x86-64 relocation: kind=" + formatv("{0:x1}", RI.r_type) + + "Unsupported x86-64 relocation: address=" + + formatv("{0:x8}", RI.r_address) + + ", symbolnum=" + formatv("{0:x6}", RI.r_symbolnum) + + ", kind=" + formatv("{0:x1}", RI.r_type) + ", pc_rel=" + (RI.r_pcrel ? "true" : "false") + ", extern= " + (RI.r_extern ? "true" : "false") + ", length=" + formatv("{0:d}", RI.r_length)); |

