[PATCH] D49821: [MC] Add support for the .rva assembler directive for COFF targets
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 25 14:22:12 PDT 2018
mstorsjo created this revision.
mstorsjo added reviewers: rnk, pcc, compnerd, smeenai.
Even though gas doesn't document it, it has been supported there for a very long time.
This produces the 32 bit relative virtual address (aka image relative address) for a given symbol. ".rva foo" is essentially equal to ".long foo at imgrel".
Repository:
rL LLVM
https://reviews.llvm.org/D49821
Files:
include/llvm/MC/MCStreamer.h
include/llvm/MC/MCWinCOFFStreamer.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCParser/COFFAsmParser.cpp
lib/MC/MCStreamer.cpp
lib/MC/MCWinCOFFStreamer.cpp
test/MC/COFF/relocation-imgrel.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49821.157361.patch
Type: text/x-patch
Size: 8882 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180725/f582bebe/attachment.bin>
More information about the llvm-commits
mailing list