[PATCH] D42867: [WebAssembly] Add _edata, _end and other link-sythentic symbols

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 16:17:20 PST 2018


dschuff added a comment.

I do like the idea of having a linker-generated symbol instead of metadata for `_end` (or `_wasm_end` or whatever) and it's something that is unlikely to be broken in the future. So I think we should do that.  But I do agree that specifying all these things would limit our ability to improve the layout in the future, especially wrt the order of the static/heap/stack bits. Since we have more constraints on our memory space than ELF (e.g. expanding only at the top instead of mmap), we might want to retain that flexibility, or even make things more dynamic or configurable, which would probably argue against matching the behavior of ELF here. We could consider having separate start/end markers for particular sections instead of having implicit ordering, if there's a use case for that.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D42867





More information about the llvm-commits mailing list