[PATCH] D140555: [lld][COFF]llvm-readobj COFFDumper print PEHeader CheckSum
Qfrost via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 30 19:49:31 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG239babe31dd2: llvm-readobj COFFDumper print PEHeader CheckSum (authored by Qfrost911).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140555/new/
https://reviews.llvm.org/D140555
Files:
lld/test/COFF/hello32.test
llvm/test/tools/llvm-readobj/COFF/file-headers.test
llvm/tools/llvm-readobj/COFFDumper.cpp
Index: llvm/tools/llvm-readobj/COFFDumper.cpp
===================================================================
--- llvm/tools/llvm-readobj/COFFDumper.cpp
+++ llvm/tools/llvm-readobj/COFFDumper.cpp
@@ -737,6 +737,7 @@
W.printNumber("MinorSubsystemVersion", Hdr->MinorSubsystemVersion);
W.printNumber("SizeOfImage", Hdr->SizeOfImage);
W.printNumber("SizeOfHeaders", Hdr->SizeOfHeaders);
+ W.printHex ("CheckSum", Hdr->CheckSum);
W.printEnum ("Subsystem", Hdr->Subsystem, makeArrayRef(PEWindowsSubsystem));
W.printFlags ("Characteristics", Hdr->DLLCharacteristics,
makeArrayRef(PEDLLCharacteristics));
Index: llvm/test/tools/llvm-readobj/COFF/file-headers.test
===================================================================
--- llvm/test/tools/llvm-readobj/COFF/file-headers.test
+++ llvm/test/tools/llvm-readobj/COFF/file-headers.test
@@ -152,6 +152,7 @@
# I386-CUSTOM-HEADER-NEXT: MinorSubsystemVersion: 0
# I386-CUSTOM-HEADER-NEXT: SizeOfImage: 4096
# I386-CUSTOM-HEADER-NEXT: SizeOfHeaders: 512
+# I386-CUSTOM-HEADER-NEXT: CheckSum: 0x0
# I386-CUSTOM-HEADER-NEXT: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3)
# I386-CUSTOM-HEADER-NEXT: Characteristics [ (0x8140)
# I386-CUSTOM-HEADER-NEXT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE (0x40)
Index: lld/test/COFF/hello32.test
===================================================================
--- lld/test/COFF/hello32.test
+++ lld/test/COFF/hello32.test
@@ -42,6 +42,7 @@
HEADER-NEXT: MinorSubsystemVersion: 0
HEADER-NEXT: SizeOfImage: 20480
HEADER-NEXT: SizeOfHeaders: 1024
+HEADER-NEXT: CheckSum: 0x0
HEADER-NEXT: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3)
HEADER-NEXT: Characteristics [ (0x9140)
HEADER-NEXT: IMAGE_DLL_CHARACTERISTICS_APPCONTAINER (0x1000)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140555.485739.patch
Type: text/x-patch
Size: 1790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221231/c14de13b/attachment.bin>
More information about the llvm-commits
mailing list