[PATCH] D96770: [lld][WebAssembly] Fix resolveIndirectFunctionTable for relocatable output

Andy Wingo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 16 04:32:23 PST 2021


wingo created this revision.
wingo added a reviewer: sbc100.
Herald added subscribers: ecnelises, sunfish, jgravelle-google, dschuff.
wingo requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

For relocatable output that needs the indirect function table, identify
the well-known function table.  This allows us to properly fix the
limits on the imported table, and in a followup will allow the element
section to reference the indirect function table even if it's not
assigned to table number 0.  Adapt tests for import reordering.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96770

Files:
  lld/test/wasm/locals-duplicate.test
  lld/test/wasm/relocatable.ll
  lld/test/wasm/weak-alias.ll
  lld/wasm/Driver.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96770.323956.patch
Type: text/x-patch
Size: 4200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210216/d63a87a1/attachment.bin>


More information about the llvm-commits mailing list