forked from OSchip/llvm-project
[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
This commit is contained in:
parent
5004abcd86
commit
65e1ddd713
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue