diff options
Diffstat (limited to 'test/COFF/header-size.s')
-rw-r--r-- | test/COFF/header-size.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/COFF/header-size.s b/test/COFF/header-size.s new file mode 100644 index 000000000000..3373cdea84f0 --- /dev/null +++ b/test/COFF/header-size.s @@ -0,0 +1,12 @@ +// REQUIRES: x86 +// RUN: llvm-mc -filetype=obj -triple=x86_64-windows %s -o %t.obj +// RUN: lld-link -entry:main -subsystem:console %t.obj -out:%t.exe +// RUN: llvm-readobj -sections %t.exe | FileCheck %s + .globl main +main: + ret + +// Check that the first section data comes at 512 bytes in the file. +// If the size allocated for headers would include size for section +// headers which aren't written, PointerToRawData would be 0x400 instead. +// CHECK: PointerToRawData: 0x200 |