You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[lld][WebAssembly]: Avoid emitting empty __wasm_apply_data_relocs function
Instead of always generating __wasm_apply_data_relocs when
relevant options like -pie and -shared are specified,
generate it only when the relevant relocations are actually
necessary.
Note: omitting empty __wasm_apply_data_relocs is not a problem
because the export is optional in the spec (DynamicLinking.md)
and all runtime linker implementations I'm aware of implement
it that way. (emscripten, toywasm, wasm-tools)
Motivations:
* This possibly reduces the module size
* This is also a preparation to fix#107387,
for which it isn't obvious if we need these relocations at the
time of createSyntheticSymbols. (unless we introduce a new explicit
option like --non-pie-dynamic-link.)
0 commit comments