[PATCH] D87258: [WebAssembly, LowerTypeTests] Fix control-flow integrity support

Dominic Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 17:32:41 PDT 2020


ddcc created this revision.
ddcc added reviewers: pcc, eugenis, dschuff, tlively, sbc100, aheejin.
Herald added subscribers: sunfish, hiraditya, jgravelle-google.
Herald added a project: LLVM.
ddcc requested review of this revision.

Turns out this has been broken for WebAssembly since s2wasm was removed. This patch fixes it by:

- LowerTypeTests: Increment index for imported symbols, and remove unsupported absolute symbols
- WebAssemblyTargetStreamer: Support pre-assigned table indices, and add relative offset


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87258

Files:
  llvm/include/llvm/MC/MCSymbolWasm.h
  llvm/include/llvm/MC/MCWasmObjectWriter.h
  llvm/lib/MC/WasmObjectWriter.cpp
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.cpp
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.h
  llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  llvm/lib/Transforms/IPO/LowerTypeTests.cpp
  llvm/test/CodeGen/WebAssembly/cfi-obj.ll
  llvm/test/MC/WebAssembly/cfi.ll
  llvm/test/Transforms/LowerTypeTests/function-disjoint.ll
  llvm/test/Transforms/LowerTypeTests/function.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87258.290380.patch
Type: text/x-patch
Size: 23518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200908/c621ab39/attachment.bin>


More information about the llvm-commits mailing list