mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 07:24:47 +00:00
Don't omit the constant when computing a cross-section relative relocation.
Differential Revision: http://reviews.llvm.org/D9692 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -738,7 +738,7 @@ void WinCOFFObjectWriter::RecordRelocation(
|
||||
int64_t OffsetOfRelocation =
|
||||
Layout.getFragmentOffset(Fragment) + Fixup.getOffset();
|
||||
|
||||
FixedValue = OffsetOfRelocation - OffsetOfB;
|
||||
FixedValue = (OffsetOfRelocation - OffsetOfB) + Target.getConstant();
|
||||
} else {
|
||||
FixedValue = Target.getConstant();
|
||||
}
|
||||
|
Reference in New Issue
Block a user