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
- rG LLVM Github Monorepo
- Build Status
Buildable 29110 Build 29109: arc lint + arc unit
Event Timeline
lld/wasm/Writer.cpp | ||
---|---|---|
1038 | This function is getting longer. I wonder if you can move this lambda out of this function. |
lld/wasm/Writer.cpp | ||
---|---|---|
1038 | Ok to do that in a follow up? |
Comment Actions
LGTM
lld/wasm/Writer.cpp | ||
---|---|---|
1038 | 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 | OK I did with this CL. |
This function is getting longer. I wonder if you can move this lambda out of this function.