[PATCH] D43288: [AArch64] Add support for secrel add/load/store relocations for COFF
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 05:44:20 PST 2018
mstorsjo created this revision.
mstorsjo added reviewers: compnerd, aemerson, t.p.northover, rengolin.
Herald added subscribers: kristof.beyls, javed.absar.
The new symbol variants `:secrel_lo12:` and `:secrel_hi12:` aren't something that is in use anywhere else, but they seem to be a straightforward enough match to existing concepts.
This adds a new flag VK_SECREL in AArch64MCExpr, but to have this flag fall under the VK_SymLocBits bit mask, I had to make the mask VK_SymLocBits non-contiguous, to avoid having to renumber the rest of the enum.
Repository:
rL LLVM
https://reviews.llvm.org/D43288
Files:
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp
lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp
lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h
lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFObjectWriter.cpp
test/MC/AArch64/coff-relocations.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43288.134209.patch
Type: text/x-patch
Size: 7858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180214/68552ead/attachment.bin>
More information about the llvm-commits
mailing list