1## Test invalid offset to symbol string table of loader section for --loader-section-symbols option. 2 3# RUN: yaml2obj %s -o %t_xcoff.o 4# RUN: llvm-readobj --loader-section-symbols %t_xcoff.o 2>&1 | FileCheck -DFILE=%t_xcoff.o %s 5 6--- !XCOFF 7FileHeader: 8 MagicNumber: 0x1DF 9Sections: 10 - Name: .loader 11 Flags: [ STYP_LOADER ] 12 SectionData: "0000000100000002000000050000016D00000001000000A40000000c000000506d79696e747661722000028000021105000000000000000000000000000000A2200002840002110a0000000000000000000a66756e63305f5f467600" 13## ^------- -Version=1 14## ^------- -NumberOfSymbolEntries=2 15## ^------- -NumberOfRelocationEntries=5 16## ^------- -LengthOfImportFileIDStringTable=365 17## ^------- -NumberOfImportFileIDs=1 18## ^------- -OffsetToImportFileIDs=0xA4 19## ^------- -LengthOfStringTable=12 20## ^------- -OffsetToStringTable=0x050 21## ^--------------- SymbolName=myintvar 22## ^------- Value=0x20000280 23## ^--- sectionNumber = 2 24## ^- SymbolType=0x11 25## ^- StorageClass=0x0a 26## ^------- ImportFileID=0 27## ^-------ParameterCheckType=0 28## ^-------SymbolZero=0 29## ^-------OffsetToStringTbl=0xA2 (Invalid) 30## ^------- Value=20000284 31## ^--- sectionNumber = 2 32## ^- SymbolType=0x11 33## ^- StorageClass=0x0a 34## ^------- ImportFileID=0 35## ^-------ParameterCheckType=0 36## ^StringTable 37 38# CHECK: warning: '[[FILE]]': entry with offset 0xa2 in the loader section's string table with size 0xc is invalid 39