[all-commits] [llvm/llvm-project] 488a62: [lld][ELF][AVR] Add range check for R_AVR_13_PCREL...

Ben Shi via All-commits all-commits at lists.llvm.org
Fri Oct 6 03:20:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 488a62f86e4f1260a2b4667b177679a6eac643c4
      https://github.com/llvm/llvm-project/commit/488a62f86e4f1260a2b4667b177679a6eac643c4
  Author: Ben Shi <2283975856 at qq.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

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

  Log Message:
  -----------
  [lld][ELF][AVR] Add range check for R_AVR_13_PCREL (#67636)

Some large AVR programs (for devices without long jump) may exceed
128KiB, and lld should give explicit errors other than generate wrong
executables silently.




More information about the All-commits mailing list