[lld] Fix R_AVR_7_PCREL and R_AVR_13_PCREL range checking (PR #92695)
Ben Shi via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 23:28:46 PDT 2024
================
@@ -238,7 +238,6 @@ void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const {
break;
}
case R_AVR_13_PCREL: {
- checkInt(loc, val - 2, 13, rel);
----------------
benshi001 wrote:
I did not catch your point at here, indeed `RJMP`/`RCALL` have a range limit of [-4096, 4094], why we can not check it for attiny85 ? And How can it jump over 4KB with `RJMP` on attiny85?
https://github.com/llvm/llvm-project/pull/92695
More information about the llvm-commits
mailing list