Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-readobj / XCOFF / loader-section-relocation-invalid-sym-name.test
blobbedd92c74634512281ff651d1fef52d4fb0c3517
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
6 --- !XCOFF
7 FileHeader:
8   MagicNumber:       0x1DF
9 Sections:
10   - Name:            .loader
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
25 ##                                                                                                                ^- SymbolType=0x11
26 ##                                                                                                                  ^- StorageClass=0x05
27 ##                                                                                                                    ^-------   ImportFileID=0
28 ##                                                                                                                            ^-------ParameterCheckType=0
29 ##                                                                                                                                    ^-------    Virtual Address = 0x20000294
30 ##                                                                                                                                            ^------- SymbolIndex = 1
31 ##                                                                                                                                                    ^--- Type =0x1f
32 ##                                                                                                                                                        ^--- Section Num =2
33 ##                                                                                                                                                            ^-------    Virtual Address = 0x20000294
34 ##                                                                                                                                                                    ^------- SymbolIndex = 3
35 ##                                                                                                                                                                            ^--- Type =0x1f
36 ##                                                                                                                                                                                ^--- Section Num =2
37 ##                                                                                                                                                                                    ^StringTable
39 # CHECK: warning: '[[FILE]]': entry with offset 0xa2 in the loader section's string table with size 0xc is invalid