brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.2 KiB · bedd92c Raw
40 lines · plain
1## Test invalid offset to symbol string table of loader section for --loader-section-relocations option.2 3# RUN: yaml2obj %s -o %t_xcoff.o4# RUN: llvm-readobj --loader-section-relocations %t_xcoff.o 2>&1 | FileCheck -DFILE=%t_xcoff.o %s5 6--- !XCOFF7FileHeader:8  MagicNumber:       0x1DF9Sections:10  - Name:            .loader11    Flags:           [ STYP_LOADER ]12    SectionData:     "0000000100000001000000020000016D00000001000000A40000000c0000005000000000000000A22000028000021105000000000000000020000294000000011f0000022000029c000000031f000002000a66756e63305f5f467600"13##                    ^-------                                                           -Version=114##                            ^-------                                                   -NumberOfSymbolEntries=115##                                    ^-------                                           -NumberOfRelocationEntries=216##                                            ^-------                                   -LengthOfImportFileIDStringTable=36517##                                                    ^-------                           -NumberOfImportFileIDs=118##                                                            ^-------                   -OffsetToImportFileIDs=0xA419##                                                                    ^-------           -LengthOfStringTable=1220##                                                                            ^-------   -OffsetToStringTable=0x05021##                                                                                    ^-------SymbolZero=022##                                                                                            ^-------OffsetToStringTbl=0xA2 (Invalid)23##                                                                                                    ^------- Value=0x2000028024##                                                                                                            ^---  sectionNumber = 225##                                                                                                                ^- SymbolType=0x1126##                                                                                                                  ^- StorageClass=0x0527##                                                                                                                    ^-------   ImportFileID=028##                                                                                                                            ^-------ParameterCheckType=029##                                                                                                                                    ^-------    Virtual Address = 0x2000029430##                                                                                                                                            ^------- SymbolIndex = 131##                                                                                                                                                    ^--- Type =0x1f32##                                                                                                                                                        ^--- Section Num =233##                                                                                                                                                            ^-------    Virtual Address = 0x2000029434##                                                                                                                                                                    ^------- SymbolIndex = 335##                                                                                                                                                                            ^--- Type =0x1f36##                                                                                                                                                                                ^--- Section Num =237##                                                                                                                                                                                    ^StringTable38 39# CHECK: warning: '[[FILE]]': entry with offset 0xa2 in the loader section's string table with size 0xc is invalid40