[PATCH] D28898: [ELF] - Allow emulation to be different from input objects target.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 13:48:50 PST 2017
> Is there any way to rewrite that part of the linker script in the Linux kernel so that the kernel doesn't depend on this dark-corner behavior of the bfd linker? If > removing `-m` from Makefile which build that particular file fixes the issue, I'd definitely do that.
That probably will work, as well as changing to -m elf_i386. But then that means we have bfd, gold and LLD all with different behavior.
I am not sure why do you want this incompatibility when we can just ignore -m if have any object files ?
(currently patch do override of -m, but I think I can update it to "check that -m is valid value and ignore it if type was inferred from .o")
Current way that looks duplicates gold behavior seems logical enough and does not require fix of side applications.
George.?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/e68f834b/attachment.html>
More information about the llvm-commits
mailing list