Object files (and the output --relocatable) should never define
__indirect_function_table. It should always be linker synthesized
with the final output executable.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I verified this fixes the crash we are seeing on the emscripten CI with the use of -r.
lld/test/wasm/locals-duplicate.test | ||
---|---|---|
241 | is this elemtype correct? do we just not distinguish right now? |
lld/test/wasm/locals-duplicate.test | ||
---|---|---|
241 | Looks like the answer is that we only have FUNCREF and EXTERNREF right now. Maybe doesn't matter for this case, I guess that's something we can fix in the future. |
lld/test/wasm/locals-duplicate.test | ||
---|---|---|
241 | This is correct I think yes. This is the only possible elem type today I think. What else would you expect it to say here? |
lld/test/wasm/locals-duplicate.test | ||
---|---|---|
241 | Actually nevermind, I was confused: this is the type of the element, not the type of the imported ref. So this is right. |
is this elemtype correct? do we just not distinguish right now?