<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 6, 2017 at 3:38 PM, Rafael Avila de Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Dan Gohman <<a href="mailto:sunfish@mozilla.com" target="_blank">sunfish@mozilla.com</a>> writes:<br>
</span><span><br>
> It would also be possible for WebAssembly to use ELF ET_REL files just for<br>
> linking, however telling LLVM and other tools to target ELF tends to lead<br>
> them to assume that the final output is ELF and rely on ELF-specific<br>
> features.<br>
<br>
</span>Things like "the dynamic linker implements copy relocations"?<br></blockquote><div><br></div><div>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.<br></div><div><br></div><div>Dan</div><br></div></div></div>