[llvm] [WebAssembly] Support multiple `.init_array` fragments when writing Wasm objects (PR #111008)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 6 09:48:31 PST 2024
================
@@ -1769,6 +1769,11 @@ uint64_t WasmObjectWriter::writeOneObject(MCAssembler &Asm,
WS.setIndex(InvalidIndex);
continue;
}
+ // Contents of .init_array sections are handled elsewhere.
+ if (WS.isDefined() &&
+ WS.getSection().getName().starts_with(".init_array")) {
----------------
sbc100 wrote:
What will happen though if there is a reference to the `p_init` symbol though, either within the object itself, or in some other object. Would this result in a relocation with against a non-existent symbol?
https://github.com/llvm/llvm-project/pull/111008
More information about the llvm-commits
mailing list