mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
The order of the two symbol listings in a Macho x86_64 subtractor relocation is reversed from what seems intuitive to me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c5edc00c4
commit
ef22f78c68
@ -835,7 +835,9 @@ error_code MachOObjectFile::getRelocationValueString(DataRefImpl Rel,
|
||||
if (error_code ec = getRelocationTargetName(RENext->Word1, SucName))
|
||||
report_fatal_error(ec.message());
|
||||
|
||||
fmt << Name << "-" << SucName;
|
||||
// The X86_64_RELOC_UNSIGNED contains the minuend symbol,
|
||||
// X86_64_SUBTRACTOR contains to the subtrahend.
|
||||
fmt << SucName << "-" << Name;
|
||||
}
|
||||
case 6: // X86_64_RELOC_SIGNED1
|
||||
fmt << Name << "-1";
|
||||
|
Loading…
Reference in New Issue
Block a user