[all-commits] [llvm/llvm-project] 525f52: [RISCV] Support Parsing Nonstandard Relocations (#...

Sam Elliott via All-commits all-commits at lists.llvm.org
Tue Jan 7 04:51:26 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 525f5262af81e460b4799e69e3f52701fd45f066
      https://github.com/llvm/llvm-project/commit/525f5262af81e460b4799e69e3f52701fd45f066
  Author: Sam Elliott <quic_aelliott at quicinc.com>
  Date:   2025-01-07 (Tue, 07 Jan 2025)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/ELF.h
    A llvm/include/llvm/BinaryFormat/ELFRelocs/RISCV_nonstandard.def
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
    M llvm/test/MC/RISCV/custom_reloc.s

  Log Message:
  -----------
  [RISCV] Support Parsing Nonstandard Relocations (#119909)

This allows nonstandard relocation names to be used in `.reloc` assembly
directives (giving the correct relocation number).

No translation is done by the assembler into `R_RISCV_CUSTOM<n>` names,
and the assembler does not automatically add the relevant
`R_RISCV_VENDOR` relocation with the vendor symbol. If we want, we can
have a different directive that does this later.

The first batch of relocations to be added are from [Qualcomm's RISC-V
psABI
extensions](https://github.com/quic/riscv-elf-psabi-quic-extensions/releases/tag/v0.1).



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