mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Revert "Add support for ARM and AArch64 BE object files"
This reverts commit r218389 as it depends on r218388. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -288,8 +288,7 @@ private:
|
||||
|
||||
// AArch64 ELF
|
||||
RelocToApply visitELF_AARCH64_ABS32(RelocationRef R, uint64_t Value) {
|
||||
int64_t Addend;
|
||||
getELFRelocationAddend(R, Addend);
|
||||
int64_t Addend = getAddend64LE(R);
|
||||
int64_t Res = Value + Addend;
|
||||
|
||||
// Overflow check allows for both signed and unsigned interpretation.
|
||||
@@ -300,8 +299,7 @@ private:
|
||||
}
|
||||
|
||||
RelocToApply visitELF_AARCH64_ABS64(RelocationRef R, uint64_t Value) {
|
||||
int64_t Addend;
|
||||
getELFRelocationAddend(R, Addend);
|
||||
int64_t Addend = getAddend64LE(R);
|
||||
return RelocToApply(Value + Addend, 8);
|
||||
}
|
||||
|
||||
@@ -338,15 +336,8 @@ private:
|
||||
}
|
||||
|
||||
RelocToApply visitELF_ARM_ABS32(RelocationRef R, uint64_t Value) {
|
||||
int64_t Addend;
|
||||
getELFRelocationAddend(R, Addend);
|
||||
int64_t Res = Value + Addend;
|
||||
|
||||
// Overflow check allows for both signed and unsigned interpretation.
|
||||
if (Res < INT32_MIN || Res > UINT32_MAX)
|
||||
HasError = true;
|
||||
|
||||
return RelocToApply(static_cast<uint32_t>(Res), 4);
|
||||
int64_t Addend = getAddend32LE(R);
|
||||
return RelocToApply(Value + Addend, 4);
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user