39 lines · plain
1## Test invalid offset to symbol string table of loader section for --loader-section-symbols option.2 3# RUN: yaml2obj %s -o %t_xcoff.o4# RUN: llvm-readobj --loader-section-symbols %t_xcoff.o 2>&1 | FileCheck -DFILE=%t_xcoff.o %s5 6--- !XCOFF7FileHeader:8 MagicNumber: 0x1DF9Sections:10 - Name: .loader11 Flags: [ STYP_LOADER ]12 SectionData: "0000000100000002000000050000016D00000001000000A40000000c000000506d79696e747661722000028000021105000000000000000000000000000000A2200002840002110a0000000000000000000a66756e63305f5f467600"13## ^------- -Version=114## ^------- -NumberOfSymbolEntries=215## ^------- -NumberOfRelocationEntries=516## ^------- -LengthOfImportFileIDStringTable=36517## ^------- -NumberOfImportFileIDs=118## ^------- -OffsetToImportFileIDs=0xA419## ^------- -LengthOfStringTable=1220## ^------- -OffsetToStringTable=0x05021## ^--------------- SymbolName=myintvar22## ^------- Value=0x2000028023## ^--- sectionNumber = 224## ^- SymbolType=0x1125## ^- StorageClass=0x0a26## ^------- ImportFileID=027## ^-------ParameterCheckType=028## ^-------SymbolZero=029## ^-------OffsetToStringTbl=0xA2 (Invalid)30## ^------- Value=2000028431## ^--- sectionNumber = 232## ^- SymbolType=0x1133## ^- StorageClass=0x0a34## ^------- ImportFileID=035## ^-------ParameterCheckType=036## ^StringTable37 38# CHECK: warning: '[[FILE]]': entry with offset 0xa2 in the loader section's string table with size 0xc is invalid39