[PATCH] D96233: [WebAssembly] Use data sections by default
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 9 11:07:43 PST 2021
sbc100 added a comment.
In D96233#2551960 <https://reviews.llvm.org/D96233#2551960>, @dschuff wrote:
> So the issue here is that using attribute(section) just generates the equivalent of `.section` and expects it to be a data section by default? Can you use __attribute__(section) on a function too? what's the behavior?
No, with wasm we don't support the section attribute for functions. Functions always get a unique section of their own. Also, unlike data sections you cannot get the __start_xxx and __end_xxx of a text section or find any addresses within a text section so it makes almost no sense to try to do this with wem.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96233/new/
https://reviews.llvm.org/D96233
More information about the llvm-commits
mailing list