mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-01 13:17:01 +00:00
Add support for the R_ARM_ABS32 relocation.
This should bring the arm buildbots back. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205502 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -153,6 +153,14 @@ public:
|
||||
HasError = true;
|
||||
return RelocToApply();
|
||||
}
|
||||
} else if (FileFormat == "ELF32-arm") {
|
||||
switch (RelocType) {
|
||||
default:
|
||||
HasError = true;
|
||||
return RelocToApply();
|
||||
case llvm::ELF::R_ARM_ABS32:
|
||||
return visitELF_ARM_ABS32(R, Value);
|
||||
}
|
||||
}
|
||||
HasError = true;
|
||||
return RelocToApply();
|
||||
@@ -325,6 +333,11 @@ private:
|
||||
return RelocToApply(Value + Addend, 8);
|
||||
}
|
||||
|
||||
RelocToApply visitELF_ARM_ABS32(RelocationRef R, uint64_t Value) {
|
||||
int64_t Addend = getAddend32LE(R);
|
||||
return RelocToApply(Value + Addend, 4);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user