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 29237 Build 29236: arc lint + arc unit
Event Timeline
lld/wasm/Writer.cpp | ||
---|---|---|
1077–1078 | This function is getting longer. I wonder if you can move this lambda out of this function. |
lld/wasm/Writer.cpp | ||
---|---|---|
1077–1078 | Ok to do that in a follow up? |
Comment Actions
LGTM
lld/wasm/Writer.cpp | ||
---|---|---|
1077–1078 | 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 | ||
---|---|---|
1077–1078 | OK I did with this CL. |
This function is getting longer. I wonder if you can move this lambda out of this function.