Files
clang-p2996/lld/test/pecoff/entry.test
Rui Ueyama 23314e1ca6 [PECOFF] Fix entry point address.
Because of a bug, the entry point address in the PE/COFF header
was not correct.

llvm-svn: 213802
2014-07-23 20:51:04 +00:00

34 lines
1017 B
Plaintext

# REQUIRES: asserts
# RUN: yaml2obj %p/Inputs/entry.obj.yaml > %t.obj
# RUN: not lld -flavor link /out:%t.exe /alternatename:_main=_foo \
# RUN: -- %t.obj 2> %t.log
# RUN: FileCheck -check-prefix=MAIN %s < %t.log
MAIN: _mainCRTStartup
# RUN: not lld -flavor link /out:%t.exe /alternatename:_wmain=_foo \
# RUN: -- %t.obj 2> %t.log
# RUN: FileCheck -check-prefix=WMAIN %s < %t.log
WMAIN: _wmainCRTStartup
# RUN: not lld -flavor link /out:%t.exe /alternatename:_WinMain=_foo \
# RUN: -- %t.obj 2> %t.log
# RUN: FileCheck -check-prefix=WINMAIN %s < %t.log
WINMAIN: _WinMainCRTStartup
# RUN: not lld -flavor link /out:%t.exe /alternatename:_wWinMain=_foo \
# RUN: -- %t.obj 2> %t.log
# RUN: FileCheck -check-prefix=WWINMAIN %s < %t.log
WWINMAIN: _wWinMainCRTStartup
# RUN: lld -flavor link /out:%t.exe /alternatename:_main=_foo \
# RUN: /alternatename:_mainCRTStartup=_bar -- %t.obj
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=MAINADDR %s
MAINADDR: AddressOfEntryPoint: 0x1004