Rather than referring to sections my their code, use the
absolute index of the target section within the module.
This is non-backwards compatible change to the linking format.
See https://github.com/WebAssembly/tool-conventions/issues/52
Paths
| Differential D45980
[WebAssembly] Use section index in relocation section header ClosedPublic Authored by sbc100 on Apr 23 2018, 12:23 PM.
Details Summary Rather than referring to sections my their code, use the This is non-backwards compatible change to the linking format. See https://github.com/WebAssembly/tool-conventions/issues/52
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, sunfish, aheejin and 3 others. · View Herald TranscriptApr 23 2018, 12:23 PM Comment Actions Looks good to me. Does it make sense to check/assert in parseRelocSection what type of section is referred to -- just to ensure we are dealing with CODE and DATA sections (while we have multiple reloc section formats in the wild)? This revision is now accepted and ready to land.Apr 24 2018, 10:37 AM Closed by commit rL330749: [WebAssembly] Use section index in relocation section header (authored by sbc). · Explain WhyApr 24 2018, 11:15 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 143619 include/llvm/Object/Wasm.h
lib/MC/WasmObjectWriter.cpp
lib/Object/WasmObjectFile.cpp
|