[all-commits] [llvm/llvm-project] 1532be: [lld][WebAssembly] Add symbols marking start/end o...

Sam Clegg via All-commits all-commits at lists.llvm.org
Thu Oct 13 14:53:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1532be98f99384990544bd5289ba339bca61e15b
      https://github.com/llvm/llvm-project/commit/1532be98f99384990544bd5289ba339bca61e15b
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2022-10-13 (Thu, 13 Oct 2022)

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

  Log Message:
  -----------
  [lld][WebAssembly] Add symbols marking start/end of stack region

Currently emscripten is make assumptions about that memory layout,
assuming the stack is between `__data_end` and `__heap_base`:

https://github.com/emscripten-core/emscripten/blob/af961ad5c4c278ec510f0b7f7d522a95ee5a90f8/system/lib/compiler-rt/stack_limits.S#L42-L61

With this change we can be more precise:

https://github.com/emscripten-core/emscripten/pull/18057

Differential Revision: https://reviews.llvm.org/D135910




More information about the All-commits mailing list