1 ## Test invalid offset to symbol string table of loader section for --loader-section-relocations option.
3 # RUN: yaml2obj %s -o %t_xcoff.o
4 # RUN: llvm-readobj --loader-section-relocations %t_xcoff.o 2>&1 | FileCheck -DFILE=%t_xcoff.o %s
11 Flags: [ STYP_LOADER ]
12 SectionData: "0000000100000001000000020000016D00000001000000A40000000c0000005000000000000000A22000028000021105000000000000000020000294000000011f0000022000029c000000031f000002000a66756e63305f5f467600"
13 ## ^------- -Version=1
14 ## ^------- -NumberOfSymbolEntries=1
15 ## ^------- -NumberOfRelocationEntries=2
16 ## ^------- -LengthOfImportFileIDStringTable=365
17 ## ^------- -NumberOfImportFileIDs=1
18 ## ^------- -OffsetToImportFileIDs=0xA4
19 ## ^------- -LengthOfStringTable=12
20 ## ^------- -OffsetToStringTable=0x050
21 ## ^-------SymbolZero=0
22 ## ^-------OffsetToStringTbl=0xA2 (Invalid)
23 ## ^------- Value=0x20000280
24 ## ^--- sectionNumber = 2
26 ## ^- StorageClass=0x05
27 ## ^------- ImportFileID=0
28 ## ^-------ParameterCheckType=0
29 ## ^------- Virtual Address = 0x20000294
30 ## ^------- SymbolIndex = 1
32 ## ^--- Section Num =2
33 ## ^------- Virtual Address = 0x20000294
34 ## ^------- SymbolIndex = 3
36 ## ^--- Section Num =2
39 # CHECK: warning: '[[FILE]]': entry with offset 0xa2 in the loader section's string table with size 0xc is invalid