For these types of relocations an absolute memory address is
required which is not possible for undefined data symbols. For symbols
that can be undefined at link time (i.e. external data symbols in
shared libraries) a different type of relocation (i.e. via a GOT) will
be needed.
Details
Details
- Reviewers
ruiu jgravelle-google - Commits
- rLLD356310: [WebAssembly] Error on R_WASM_MEMORY_ADDR relocations against undefined data…
rG632c217921c0: [WebAssembly] Error on R_WASM_MEMORY_ADDR relocations against undefined data…
rL356310: [WebAssembly] Error on R_WASM_MEMORY_ADDR relocations against undefined data…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lld/wasm/Writer.cpp | ||
---|---|---|
1038 ↗ | (On Diff #190524) | This function is getting longer. I wonder if you can move this lambda out of this function. |
lld/wasm/Writer.cpp | ||
---|---|---|
1038 ↗ | (On Diff #190524) | Ok to do that in a follow up? |
Comment Actions
LGTM
lld/wasm/Writer.cpp | ||
---|---|---|
1038 ↗ | (On Diff #190524) | I'd personally like to do beforehand so that the code is cleaner at any point of time, but a follow-up patch is OK. |
lld/wasm/Writer.cpp | ||
---|---|---|
1038 ↗ | (On Diff #190524) | OK I did with this CL. |