[PATCH] D59278: [WebAssembly] Create runtime relocations in shared objects

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 16:07:02 PDT 2019


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

See: https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md

Relocations in wasm shared libraries are applied by the library itself
at static constructor time.  This change adds a new synthetic function
that applies relocations to relevant memory locations on startup.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D59278

Files:
  lld/test/wasm/shared.ll
  lld/wasm/Driver.cpp
  lld/wasm/InputChunks.cpp
  lld/wasm/InputChunks.h
  lld/wasm/InputFiles.h
  lld/wasm/MarkLive.cpp
  lld/wasm/Symbols.cpp
  lld/wasm/Symbols.h
  lld/wasm/Writer.cpp
  llvm/include/llvm/BinaryFormat/Wasm.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59278.190353.patch
Type: text/x-patch
Size: 12576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190312/569bbe7e/attachment.bin>


More information about the llvm-commits mailing list