[all-commits] [llvm/llvm-project] ed5dd8: [LLD][ELF] Fix --check-dynamic-relocations for 32-...

Andrew Ng via All-commits all-commits at lists.llvm.org
Wed May 3 03:21:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed5dd8e5f0fb6ca4af26adcb6193a9d9106eb36a
      https://github.com/llvm/llvm-project/commit/ed5dd8e5f0fb6ca4af26adcb6193a9d9106eb36a
  Author: Andrew Ng <andrew.ng at sony.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M lld/ELF/SyntheticSections.cpp
    M lld/test/ELF/arm-pie-relative.s

  Log Message:
  -----------
  [LLD][ELF] Fix --check-dynamic-relocations for 32-bit targets

OutputSection::checkDynRelAddends() incorrectly reports an internal
linker error for large addends on 32-bit targets. This is caused by the
lack of sign extension in DynamicReloc::computeAddend() for 32-bit
addends.

Differential Revision: https://reviews.llvm.org/D149347




More information about the All-commits mailing list