mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
MC/Mach-O: Resolve a FIXME; these relocation types are no longer semanticaly different.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98120 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f116aa3b1
commit
07a9641ebf
@ -462,9 +462,11 @@ public:
|
|||||||
llvm_report_error("symbol '" + B->getName() +
|
llvm_report_error("symbol '" + B->getName() +
|
||||||
"' can not be undefined in a subtraction expression");
|
"' can not be undefined in a subtraction expression");
|
||||||
|
|
||||||
// FIXME: This change of type based on the external bit doesn't make much
|
// Select the appropriate difference relocation type.
|
||||||
// sense, it seems to be redundant with the other information in the
|
//
|
||||||
// relocation entry.
|
// Note that there is no longer any semantic difference between these two
|
||||||
|
// relocation types from the linkers point of view, this is done solely
|
||||||
|
// for pedantic compatibility with 'as'.
|
||||||
Type = A_SD->isExternal() ? RIT_Difference : RIT_LocalDifference;
|
Type = A_SD->isExternal() ? RIT_Difference : RIT_LocalDifference;
|
||||||
Value2 = B_SD->getFragment()->getAddress() + B_SD->getOffset();
|
Value2 = B_SD->getFragment()->getAddress() + B_SD->getOffset();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user