brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 606cbd0 Raw
64 lines · plain
1# RUN: sed -e s/ENTRYNAME/main/ %s | yaml2obj > %t.obj2# RUN: not lld-link /out:%t.exe %t.obj > %t.log 2>&13# RUN: FileCheck -check-prefix=MAIN %s < %t.log4# RUN: not lld-link /nodefaultlib /out:%t.exe %t.obj > %t.log 2>&15# RUN: FileCheck -check-prefix=MAIN %s < %t.log6 7# Entry inference should work through /wholearchive:, they are also inputs.8# RUN: lld-link /lib %t.obj /out:%t.lib9# RUN: not lld-link /nodefaultlib /out:%t.exe /wholearchive:%t.lib > %t.log 2>&110# RUN: FileCheck -check-prefix=MAIN %s < %t.log11 12# RUN: sed s/ENTRYNAME/wmain/ %s | yaml2obj > %t.obj13# RUN: not lld-link /out:%t.exe %t.obj > %t.log 2>&114# RUN: FileCheck -check-prefix=WMAIN %s < %t.log15# RUN: not lld-link /nodefaultlib /out:%t.exe %t.obj > %t.log 2>&116# RUN: FileCheck -check-prefix=WMAIN %s < %t.log17 18# RUN: sed s/ENTRYNAME/WinMain/ %s | yaml2obj > %t.obj19# RUN: not lld-link /out:%t.exe %t.obj > %t.log 2>&120# RUN: FileCheck -check-prefix=WINMAIN %s < %t.log21# RUN: not lld-link /nodefaultlib /out:%t.exe %t.obj > %t.log 2>&122# RUN: FileCheck -check-prefix=WINMAIN %s < %t.log23 24# RUN: sed s/ENTRYNAME/wWinMain/ %s | yaml2obj > %t.obj25# RUN: not lld-link /out:%t.exe %t.obj > %t.log 2>&126# RUN: FileCheck -check-prefix=WWINMAIN %s < %t.log27# RUN: not lld-link /nodefaultlib /out:%t.exe %t.obj > %t.log 2>&128# RUN: FileCheck -check-prefix=WWINMAIN %s < %t.log29 30# MAIN:     error: <root>: undefined symbol: mainCRTStartup31# WMAIN:    error: <root>: undefined symbol: wmainCRTStartup32# WINMAIN:  error: <root>: undefined symbol: WinMainCRTStartup33# WWINMAIN: error: <root>: undefined symbol: wWinMainCRTStartup34 35--- !COFF36header:37  Machine:         IMAGE_FILE_MACHINE_AMD6438  Characteristics: []39sections:40  - Name:            .text41    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]42    Alignment:       443    SectionData:     B82A000000C344symbols:45  - Name:            .text46    Value:           047    SectionNumber:   148    SimpleType:      IMAGE_SYM_TYPE_NULL49    ComplexType:     IMAGE_SYM_DTYPE_NULL50    StorageClass:    IMAGE_SYM_CLASS_STATIC51    SectionDefinition:52      Length:          653      NumberOfRelocations: 054      NumberOfLinenumbers: 055      CheckSum:        056      Number:          057  - Name:            ENTRYNAME58    Value:           059    SectionNumber:   160    SimpleType:      IMAGE_SYM_TYPE_NULL61    ComplexType:     IMAGE_SYM_DTYPE_NULL62    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL63...64