<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 23, 2017 at 2:09 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 class="">Rui Ueyama <<a href="mailto:ruiu@google.com">ruiu@google.com</a>> writes:<br>
<br>
> So let's say gold ignores `-m` if at least one .o is present on command<br>
> line (I did not verify that myself.) It feels weird, doesn't it? Why should<br>
> we ignore `-m` if an object file is given? If that's the correct behavior<br>
> for some reason, why don't we completely ignore `-m` even when all object<br>
> files are in static archives?<br>
<br>
</span>Oh, what I would be OK with is to ignore -m if there are any ELF files<br>
at all, including archives. That way -m is only used if all inputs are<br>
raw binaries or bitcode files.<br></blockquote><div><br></div><div>That makes much more sense than what I was thinking. There's one thing that's not clear to me, though. We have code to handle "_fbsd" prefix and do something for FreeBSD. We still need that, no? </div></div></div></div>