[PATCH] D28898: [ELF] - Allow emulation to be different from input objects target.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 14:11:26 PST 2017
On Mon, Jan 23, 2017 at 2:09 PM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:
> Rui Ueyama <ruiu at google.com> writes:
>
> > So let's say gold ignores `-m` if at least one .o is present on command
> > line (I did not verify that myself.) It feels weird, doesn't it? Why
> should
> > we ignore `-m` if an object file is given? If that's the correct behavior
> > for some reason, why don't we completely ignore `-m` even when all object
> > files are in static archives?
>
> Oh, what I would be OK with is to ignore -m if there are any ELF files
> at all, including archives. That way -m is only used if all inputs are
> raw binaries or bitcode files.
>
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/a43fb563/attachment.html>
More information about the llvm-commits
mailing list