[all-commits] [llvm/llvm-project] 0c6d7a: [LLD] Add support for statically resolved vendor-s...

Owen Anderson via All-commits all-commits at lists.llvm.org
Thu Nov 27 19:34:30 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c6d7a40187e5e6cbdff1cf5dbdb6fe91054bef4
      https://github.com/llvm/llvm-project/commit/0c6d7a40187e5e6cbdff1cf5dbdb6fe91054bef4
  Author: Owen Anderson <resistor at mac.com>
  Date:   2025-11-27 (Thu, 27 Nov 2025)

  Changed paths:
    M lld/ELF/Arch/RISCV.cpp
    A lld/ELF/Arch/RISCVInternalRelocations.h
    M lld/ELF/Target.cpp
    M lld/test/ELF/riscv-vendor-relocations.s

  Log Message:
  -----------
  [LLD] Add support for statically resolved vendor-specific RISCV relocations. (#169273)

This is achieved by using some of the bits of RelType to tag vendor namespaces. This change also adds a relocation iterator for RISCV that folds vendor namespaces into the RelType of the following relocation.

This patch is extracted from the implementation of RISCV vendor-specific relocations in the CHERIoT LLVM downstream: https://github.com/CHERIoT-Platform/llvm-project/commit/3d6d6f7d9480b590731cbcf4b4817e1fa3049854



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