diff options
author | Eric Beckmann <ecbeckmann@google.com> | 2017-06-26 17:43:30 +0000 |
---|---|---|
committer | Eric Beckmann <ecbeckmann@google.com> | 2017-06-26 17:43:30 +0000 |
commit | 69e4d36881e54a8a7430e11f3c58ef1e87f071d6 (patch) | |
tree | 4c16c8357414ddd05edcbb662fddf6d618867804 /unittests/BinaryFormat | |
parent | 7226719a52dcf3eaad971668ea6e121077eb77fa (diff) |
Replace trivial use of external rc.exe by writing our own .res file.
This patch removes the dependency on the external rc.exe tool by writing
a simple .res file using our own library. In this patch I also added an
explicit definition for the .res file magic. Furthermore, I added a
unittest for embeded manifests and fixed a bug exposed by the test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/BinaryFormat')
-rw-r--r-- | unittests/BinaryFormat/TestFileMagic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/BinaryFormat/TestFileMagic.cpp b/unittests/BinaryFormat/TestFileMagic.cpp index fc2c1eef9fb..68b3ade0095 100644 --- a/unittests/BinaryFormat/TestFileMagic.cpp +++ b/unittests/BinaryFormat/TestFileMagic.cpp @@ -76,7 +76,8 @@ const char macho_dsym_companion[] = "\xfe\xed\xfa\xce........\x00\x00\x00\x0a............"; const char macho_kext_bundle[] = "\xfe\xed\xfa\xce........\x00\x00\x00\x0b............"; -const char windows_resource[] = "\x00\x00\x00\x00\x020\x00\x00\x00\xff"; +const char windows_resource[] = + "\x00\x00\x00\x00\x020\x00\x00\x00\xff\xff\x00\x00\xff\xff\x00\x00"; const char macho_dynamically_linked_shared_lib_stub[] = "\xfe\xed\xfa\xce........\x00\x00\x00\x09............"; |