[PATCH] D42284: [WebAssembly] MC: Start table at offset 1 rather than 0

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 19:56:20 PST 2018


sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff, jfb.

For consistency with the output of lld.

This is useful in runnable binaries as can them be sure the
null function pointer will never be a valid argument
call_indirect.


Repository:
  rL LLVM

https://reviews.llvm.org/D42284

Files:
  lib/MC/WasmObjectWriter.cpp
  test/MC/WebAssembly/external-func-address.ll
  test/MC/WebAssembly/func-address.ll
  test/MC/WebAssembly/global-ctor-dtor.ll
  test/MC/WebAssembly/weak-alias.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42284.130553.patch
Type: text/x-patch
Size: 6395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180119/2a92ac86/attachment.bin>


More information about the llvm-commits mailing list