[PATCH] D136110: [wasm-ld] Define a `__heap_end` symbol marking the end of allocated memory.

Dan Gohman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 13:56:12 PDT 2022


sunfish created this revision.
sunfish added a reviewer: sbc100.
Herald added subscribers: pmatos, asb.
Herald added a project: All.
sunfish requested review of this revision.
Herald added a subscriber: aheejin.
Herald added a project: LLVM.

Define a `__heap_end` symbol that marks the end of the memory region
that starts at `__heap_base`. This will allow malloc implementations to
know how much memory they can use at `__heap_base` even if someone has
done a `memory.grow` before they can initialize their state.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136110

Files:
  lld/test/wasm/export-all.s
  lld/test/wasm/mutable-global-exports.s
  lld/wasm/Driver.cpp
  lld/wasm/Symbols.cpp
  lld/wasm/Symbols.h
  lld/wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136110.468309.patch
Type: text/x-patch
Size: 5001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221017/d747f5c0/attachment.bin>


More information about the llvm-commits mailing list