[PATCH] D76746: [MC][ARM] Make .reloc support arbitrary relocation types
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 24 19:42:23 PDT 2020
MaskRay created this revision.
MaskRay added reviewers: efriedma, grimar, psmith.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
Generalizes D61992 <https://reviews.llvm.org/D61992>. In GNU as, the .reloc directive supports arbitrary relocation types.
A MCFixupKind value `V` larger than or equal to FirstLiteralRelocationKind
is used to represent the relocation type whose number is V-FirstLiteralRelocationKind.
This is useful for linker tests. Without the feature the assembler
cannot produce certain relocation records (e.g. R_ARM_ALU_PC_G0/R_ARM_LDR_PC_G0)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76746
Files:
llvm/include/llvm/MC/MCFixup.h
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
llvm/test/MC/ARM/reloc-directive.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76746.252478.patch
Type: text/x-patch
Size: 5751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200325/48c575bb/attachment.bin>
More information about the llvm-commits
mailing list