[PATCH] D61539: [WebAssembly] Don't generate unused table entries.

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 14:29:08 PDT 2019


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

When generating PIC output only relocations of type
R_WASM_TABLE_INDEX_REL_SLEB should generate table entries.

R_WASM_TABLE_INDEX_I32 get resolved at runtime via the auto-generated
__wasm_apply_relocs functions.

R_WASM_TABLE_INDEX_SLEB are not allowed in PIC code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D61539

Files:
  lld/test/wasm/pie.ll
  lld/test/wasm/shared.ll
  lld/wasm/InputChunks.cpp
  lld/wasm/InputFiles.cpp
  lld/wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61539.198092.patch
Type: text/x-patch
Size: 7259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190503/7849ed5e/attachment.bin>


More information about the llvm-commits mailing list