[all-commits] [llvm/llvm-project] 6512e4: [LLD][ARM] Allow R_ARM_SBREL32 relocations in debu...

Oliver Stannard via All-commits all-commits at lists.llvm.org
Mon Nov 25 00:51:48 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6512e488f6a118fc781fc39ccb79766e11359048
      https://github.com/llvm/llvm-project/commit/6512e488f6a118fc781fc39ccb79766e11359048
  Author: Oliver Stannard <oliver.stannard at arm.com>
  Date:   2024-11-25 (Mon, 25 Nov 2024)

  Changed paths:
    M lld/ELF/InputSection.cpp
    A lld/test/ELF/arm-rwpi-debug-relocs.s

  Log Message:
  -----------
  [LLD][ARM] Allow R_ARM_SBREL32 relocations in debug info (#116956)

The R_ARM_SBREL32 relocation is used in debug info for ARM RWPI
(read-write position independent) code. Compiler-generated DWARF info
will use an expression to add the relocated value to the actual value of
the static base (held in r9) at run-time, so it should be relocated as
if the static base is at address 0.



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