From: Lang Hames Date: Sat, 20 Apr 2019 22:59:43 +0000 (+0000) Subject: [JITLink] Add yet more detail to MachO/x86-64 unsupported relocation errors. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9674336a4d5b1cb8056d788d1e089174a7bad38;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358833 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp b/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp index 857885bee10..50bbe4b0c75 100644 --- a/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp +++ b/lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp @@ -88,7 +88,10 @@ private: } return make_error( - "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));