[all-commits] [llvm/llvm-project] 2f900f: [ARM, MC] Support FDPIC relocations (#82187)
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Feb 21 09:41:01 PST 2024
Branch: refs/heads/users/MaskRay/spr/main.armmc-support-fdpic-relocations
Home: https://github.com/llvm/llvm-project
Commit: 2f900f7d1e0fce4c245286f09b96205e999cc0e4
https://github.com/llvm/llvm-project/commit/2f900f7d1e0fce4c245286f09b96205e999cc0e4
Author: Fangrui Song <i at maskray.me>
Date: 2024-02-21 (Wed, 21 Feb 2024)
Changed paths:
M llvm/include/llvm/BinaryFormat/ELF.h
M llvm/include/llvm/BinaryFormat/ELFRelocs/ARM.def
M llvm/include/llvm/MC/MCExpr.h
M llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
M llvm/include/llvm/MC/MCTargetOptions.h
M llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h
M llvm/lib/MC/MCExpr.cpp
M llvm/lib/MC/MCParser/AsmParser.cpp
M llvm/lib/MC/MCTargetOptions.cpp
M llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
M llvm/lib/ObjectYAML/ELFYAML.cpp
M llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
M llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
M llvm/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
M llvm/lib/Target/ARM/MCTargetDesc/CMakeLists.txt
A llvm/test/MC/ARM/fdpic.s
M llvm/test/tools/llvm-readobj/ELF/file-header-os-abi.test
M llvm/test/tools/llvm-readobj/ELF/reloc-types-arm.test
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
[ARM,MC] Support FDPIC relocations (#82187)
Linux kernel fs/binfmt_elf_fdpic.c supports FDPIC for MMU-less systems.
GCC/binutils/qemu support FDPIC ABI for ARM
(https://github.com/mickael-guene/fdpic_doc).
_ARM FDPIC Toolchain and ABI_ provides a summary.
This patch implements FDPIC relocations to the integrated assembler.
There are 6 static relocations and 2 dynamic relocations, with
R_ARM_FUNCDESC as both static and dynamic.
gas requires `--fdpic` to assemble data relocations like `.word
f(FUNCDESC)`.
This patch adds `MCTargetOptions::FDPIC` and reports an error if FDPIC
is not set.
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