[PATCH] D88804: [LLD] [MinGW] Support setting the subsystem version via the subsystem argument
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 04:21:19 PDT 2020
mstorsjo added a comment.
In D88804#2311497 <https://reviews.llvm.org/D88804#2311497>, @mati865 wrote:
> With BFD (tested version 2.35) the latter specified option takes precedence:
>
> $ gcc clear.c -Wl,--subsystem,windows:7.8,--major-subsystem-version,2,--minor-subsystem-version,3
> $ llvm-readobj -h a.exe | grep SubsystemVersion
> MajorSubsystemVersion: 2
> MinorSubsystemVersion: 3
>
> $ gcc clear.c -Wl,--major-subsystem-version,2,--minor-subsystem-version,3,--subsystem,windows:7.8
> $ llvm-readobj -h a.exe | grep SubsystemVersion
> MajorSubsystemVersion: 7
> MinorSubsystemVersion: 8
Oh, tricky. Will have to see if we can match that with reasonable effort...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88804/new/
https://reviews.llvm.org/D88804
More information about the llvm-commits
mailing list