[PATCH] D28898: [ELF] - Allow emulation to be different from input objects target.
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 14:09:19 PST 2017
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.
Cheers,
Rafael
More information about the llvm-commits
mailing list