mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add support for MC-ized encoding of tLEApcrel and tLEApcrelJT. rdar://8755755
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121798 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -123,6 +123,8 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
|
||||
|
||||
return Value;
|
||||
}
|
||||
case ARM::fixup_thumb_adr_pcrel_10:
|
||||
return ((Value - 4) >> 2) & 0xff;
|
||||
case ARM::fixup_arm_adr_pcrel_12: {
|
||||
// ARM PC-relative values are offset by 8.
|
||||
Value -= 8;
|
||||
@@ -358,6 +360,7 @@ static unsigned getFixupKindNumBytes(unsigned Kind) {
|
||||
|
||||
case ARM::fixup_arm_thumb_bcc:
|
||||
case ARM::fixup_arm_thumb_cp:
|
||||
case ARM::fixup_thumb_adr_pcrel_10:
|
||||
return 1;
|
||||
|
||||
case ARM::fixup_arm_thumb_br:
|
||||
|
Reference in New Issue
Block a user