[all-commits] [llvm/llvm-project] 698ac4: [ELF] Add PT_RISCV_ATTRIBUTES program header
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Jun 6 13:06:35 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 698ac4aba555fa74f6f9310578c9b9bf42beaea0
https://github.com/llvm/llvm-project/commit/698ac4aba555fa74f6f9310578c9b9bf42beaea0
Author: Fangrui Song <i at maskray.me>
Date: 2023-06-06 (Tue, 06 Jun 2023)
Changed paths:
M lld/ELF/Writer.cpp
M lld/docs/ReleaseNotes.rst
M lld/test/ELF/riscv-attributes.s
Log Message:
-----------
[ELF] Add PT_RISCV_ATTRIBUTES program header
Close https://github.com/llvm/llvm-project/issues/63084
Unlike AArch32, RISC-V defines PT_RISCV_ATTRIBUTES to include the
SHT_RISCV_ATTRIBUTES section. There is no real-world use case yet.
We place PT_RISCV_ATTRIBUTES after PT_GNU_STACK, similar to PT_ARM_EXIDX. GNU ld
places PT_RISCV_ATTRIBUTES earlier, but the placement should not matter.
Link: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/71
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D152065
More information about the All-commits
mailing list