[PATCH] D66455: [WebAssembly][MC] Simplify WasmObjectWriter::recordRelocation. NFC.

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 17:34:01 PDT 2019


sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, hiraditya, jgravelle-google, dschuff.
Herald added a project: LLVM.
sbc100 added reviewers: sunfish, dschuff.

WebAssembly doesn't support PC relative relocation or relocation
expressions that can't be reduced to single symbol.

The only support for we have for fixups involving two symbols are when
both symbols are defined and withing the same section.  In this case
evaluateFixup will already have evaluated to the expression before
calling recordRelocation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66455

Files:
  llvm/lib/MC/WasmObjectWriter.cpp
  llvm/test/MC/WebAssembly/bad-fixup-expr.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66455.216030.patch
Type: text/x-patch
Size: 4626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190820/225f13c3/attachment.bin>


More information about the llvm-commits mailing list