This allows data sections that don't start with .data to be
used/created.
Without this, clang's __attribute__((section("foo"))) would
generate assembly that would not parse.
Differential D96233
[WebAssembly] Use data sections by default sbc100 on Feb 7 2021, 8:25 PM. Authored by
Details
This allows data sections that don't start with .data to be Without this, clang's __attribute__((section("foo"))) would
Diff Detail
Event TimelineComment Actions 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? Comment Actions 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. |