2018-05-17 23:11:01 +08:00
|
|
|
rm %t.*.exe
|
2020-08-21 06:00:25 +08:00
|
|
|
RUN: yaml2obj %p/Inputs/generic.yaml -o %t.obj
|
2018-05-17 23:11:01 +08:00
|
|
|
RUN: lld-link %t.obj /debug /Brepro /entry:main /nodefaultlib /out:%t.1.exe
|
|
|
|
RUN: lld-link %t.obj /debug /Brepro /entry:main /nodefaultlib /out:%t.2.exe
|
|
|
|
RUN: lld-link %t.obj /debug /timestamp:0 /entry:main /nodefaultlib /out:%t.3.exe
|
2019-05-01 13:49:01 +08:00
|
|
|
RUN: llvm-readobj --file-headers --coff-debug-directory %t.1.exe | FileCheck %s --check-prefix=HASH
|
|
|
|
RUN: llvm-readobj --file-headers --coff-debug-directory %t.2.exe | FileCheck %s --check-prefix=HASH
|
|
|
|
RUN: llvm-readobj --file-headers --coff-debug-directory %t.3.exe | FileCheck %s --check-prefix=ZERO
|
2018-05-17 23:11:01 +08:00
|
|
|
|
|
|
|
HASH: ImageFileHeader {
|
|
|
|
HASH: TimeDateStamp: [[STAMP:.*]]
|
|
|
|
HASH: DebugDirectory [
|
|
|
|
HASH: TimeDateStamp: [[STAMP]]
|
|
|
|
|
|
|
|
ZERO: ImageFileHeader {
|
|
|
|
ZERO: TimeDateStamp: 1970-01-01 00:00:00 (0x0)
|
|
|
|
ZERO: DebugDirectory [
|
|
|
|
ZERO: TimeDateStamp: 1970-01-01 00:00:00 (0x0)
|