[PATCH] D35234: [WebAssembly] Expose the offset of each data segment

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 17:09:47 PDT 2017


sbc100 added a comment.

No the motivation is to allow the linker to know which relocations apply to a given segment.  Since the relocations all defined as offsets in to the section.  Does that make sense?  We could go back to the drawing board and define relocations for each segment separately, but that also complicated the definition of relocations.    Alternatively the linker could parse the data section itself rather then relying on the libObject abstraction.


https://reviews.llvm.org/D35234





More information about the llvm-commits mailing list