COFF: Support /manifest{,uac,dependency,file} options.
authorRui Ueyama <ruiu@google.com>
Thu, 18 Jun 2015 00:12:42 +0000 (00:12 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 18 Jun 2015 00:12:42 +0000 (00:12 +0000)
commit24c5fd04196e8008e9cf47799e012f5856d4dc4b
tree8c1f894b015ae336fa0cb3205467120aa24974e3
parentc6e8bfc41dafcb3c886991210a6681fb5337be94
COFF: Support /manifest{,uac,dependency,file} options.

The linker has to create an XML file for each executable.
This patch supports that feature.

You can optionally embed an XML file to an executable as .rsrc
section. If you choose to do that (by passing /manifest:embed
option), the linker has to create a textual resource file
containing an XML file, compile that using rc.exe to a binary
resource file, conver that resource file to a COFF file using
cvtres.exe, and then link that COFF file. This patch implements
that feature too.

llvm-svn: 239978
lld/COFF/Config.h
lld/COFF/Driver.cpp
lld/COFF/Driver.h
lld/COFF/DriverUtils.cpp
lld/test/COFF/manifest.test [new file with mode: 0644]