[PATCH] D83751: [MC] Support .reloc sym+constant, *, *

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 00:35:35 PDT 2020


MaskRay created this revision.
MaskRay added reviewers: PowerPC, nemanjai, sfertile, stefanp.
Herald added subscribers: llvm-commits, atanasyan, jrtc27, hiraditya, sdardis, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

For `.reloc offset, *, *`, currently offset can be a constant or symbol.
This patch makes it support any expression which can be folded to sym+constant.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83751

Files:
  llvm/include/llvm/MC/MCObjectStreamer.h
  llvm/include/llvm/MC/MCStreamer.h
  llvm/lib/MC/MCAsmStreamer.cpp
  llvm/lib/MC/MCObjectStreamer.cpp
  llvm/lib/MC/MCParser/AsmParser.cpp
  llvm/test/MC/ELF/reloc-directive-err.s
  llvm/test/MC/ELF/reloc-directive.s
  llvm/test/MC/Mips/reloc-directive-bad.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83751.277688.patch
Type: text/x-patch
Size: 11054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200714/6eb11a3b/attachment.bin>


More information about the llvm-commits mailing list