[PATCH] D13933: [COFF] Add some ld Aliases for gnu mode
Martell Malone via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 07:23:20 PDT 2015
martell added a comment.
In http://reviews.llvm.org/D13933#272072, @ruiu wrote:
> Ah, so this is the other patch to support other options.
>
> As we discussed before, the difference between link.exe and GNU ld are not superficial -- some command line options can be supported as aliases (like the ones you are adding in this patch), but others have significant semantic differences. I want to discuss the plan first. What is your plan on that, and what is the goal?
Yes originally I had created a separate Driver for this but you said you didn't like the idea of a new driver.
I would like to add support for aliases where possible as rnk suggested in the previous thread and then implement handlers for the ones that gnu has that link doesn't.
If I mis interpreted that please feel free to correct me
The goal would be to have all the aliases that ld provides here implemented
https://sourceware.org/binutils/docs/ld/Options.html
With this patch is already it enough to compile simple executables
As for the functionality that link.exe has that ld doesn't the end user would be able to use the link.exe version in conjunction with their existing arguments. I think that would be a decent compromise.
Alternatively because the ELF2 Driver is a lot more complete now we could bind that driver to COFF like I done previously with the old PECOFF system here.
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-clang/0034-GNU-add-support-for-linking-PECOFF.patch
As I stated previously I don't mind what way we do this.
Just as long as we have something that is working for the COFF target from an ld frontend.
http://reviews.llvm.org/D13933
More information about the llvm-commits
mailing list