[llvm-dev] [LLD] Adding WebAssembly support to lld
Dan Gohman via llvm-dev
llvm-dev at lists.llvm.org
Mon Jul 10 16:31:18 PDT 2017
On Thu, Jul 6, 2017 at 3:38 PM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:
> Dan Gohman <sunfish at mozilla.com> writes:
>
> > It would also be possible for WebAssembly to use ELF ET_REL files just
> for
> > linking, however telling LLVM and other tools to target ELF tends to lead
> > them to assume that the final output is ELF and rely on ELF-specific
> > features.
>
> Things like "the dynamic linker implements copy relocations"?
>
That's a good example. Copy relocations are a way to avoid writing to the
pages of the text segment of the main executable that's typically been
mmapped from a file. WebAssembly doesn't mmap text segments into the
program in the first place, so ELF code that thinks it knows things about
ELF-style copy relocations doesn't apply.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170710/961162dd/attachment.html>
More information about the llvm-dev
mailing list