COFF: Support Windows resource files.
authorRui Ueyama <ruiu@google.com>
Sun, 14 Jun 2015 21:50:50 +0000 (21:50 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 14 Jun 2015 21:50:50 +0000 (21:50 +0000)
commit2bf6a122387d57e1f5e9bf52bfd11e6a8849ab6b
treee4e4d6a33f3315a84ada0013daa75ae626518ef7
parentec782b4cf204d2efcfebf31eb718818de4241ce4
COFF: Support Windows resource files.

Resource files are data files containing i18n messages, icon images, etc.
MSVC has a tool to convert a resource file to a regular COFF file so that
you can just link that file to embed resources to an executable.

However, you can directly pass resource files to the linker. If you do that,
the linker invokes the tool automatically. This patch implements that feature.

llvm-svn: 239704
lld/COFF/Chunks.cpp
lld/COFF/Driver.cpp
lld/COFF/Driver.h
lld/COFF/DriverUtils.cpp
lld/COFF/Writer.cpp
lld/test/COFF/Inputs/resource.res [new file with mode: 0644]
lld/test/COFF/resource.test [new file with mode: 0644]