[all-commits] [llvm/llvm-project] 64a252: [lldb][ObjectFileELF] Support AArch32 in ApplyRelo...

Stefan Gränitz via All-commits all-commits at lists.llvm.org
Sat Apr 29 08:35:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64a2520bacb59dac43bb4fd19ff1788d785102de
      https://github.com/llvm/llvm-project/commit/64a2520bacb59dac43bb4fd19ff1788d785102de
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2023-04-29 (Sat, 29 Apr 2023)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
    A lldb/test/Shell/ObjectFile/ELF/aarch32-relocations.yaml

  Log Message:
  -----------
  [lldb][ObjectFileELF] Support AArch32 in ApplyRelocations

Allow the ObjectFileELF plugin to resolve R_ARM_ABS32 relocations from AArch32 object files. This fixes https://github.com/llvm/llvm-project/issues/61948

The existing architectures work with RELA-type relocation records that read addend from the relocation entry. REL-type relocations in AArch32 store addend in-place.
The new function doesn't re-use ELFRelocation::RelocAddend32(), because the interface doesn't match: in addition to the relocation entry we need the actual target section memory.

Reviewed By: labath

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




More information about the All-commits mailing list