[all-commits] [llvm/llvm-project] 5ae856: Fix R_AVR_7_PCREL and R_AVR_13_PCREL range checkin...

Ayke via All-commits all-commits at lists.llvm.org
Wed May 22 18:18:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ae8567640e495296acc0e20c966548aec401119
      https://github.com/llvm/llvm-project/commit/5ae8567640e495296acc0e20c966548aec401119
  Author: Ayke <aykevanlaethem at gmail.com>
  Date:   2024-05-23 (Thu, 23 May 2024)

  Changed paths:
    M lld/ELF/Arch/AVR.cpp
    M lld/test/ELF/avr-reloc-error.s
    M lld/test/ELF/avr-reloc.s

  Log Message:
  -----------
  Fix R_AVR_7_PCREL and R_AVR_13_PCREL range checking (#92695)

Fix incorrect range check of R_AVR_7_PCREL. R_AVR_7_PCREL has 7 bits
available, but it works in instruction words and the actual range is [-128, 126].

Disable range check of R_AVR_13_PCREL. This matches the behavior of avr-ld,
and is needed for devices like the ATtiny85 which only have rjmp/rcall but have
8KiB flash memory.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list