<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 1, 2018 at 3:41 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>Rui Ueyama via Phabricator <<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>> writes:<br>
<br>
> +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o<br>
> +# RUN: ld.lld --build-id=0xcafebabe -o %t2.o %t1.o<br>
> +# RUN: ld.lld --build-id=0xdeadbeef -o %t.exe %t2.o<br>
<br>
</span>In here %t2.o is actually an executable. When trying to link %t.exe gold<br>
errors with<br>
<br>
ld.gold: error: test2.o: unsupported ELF file type 2<br></blockquote><div><br></div><div>Oh, that's a mistake. I'll fix it and upload a new patch.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could we do the same (with a better error message)?<br></blockquote><div><br></div><div>We should do that, but I'll do that in another patch. </div></div></div></div>