brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.2 KiB · e96ae02 Raw
94 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-readobj --sframe %t 2>&1 | \3# RUN:   FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t4 5--- !ELF6FileHeader:7  Class:   ELFCLASS648  Data:    ELFDATA2LSB9  Type:    ET_REL10  Machine: EM_X86_6411Sections:12  - Name:  .text13    Type:  SHT_PROGBITS14    Flags: [ SHF_ALLOC, SHF_EXECINSTR ]15    Size:  0x100016  - Name:  .sframe17    Type:  SHT_GNU_SFRAME18    Flags: [ SHF_ALLOC ]19    ContentArray: [20      0xe2, 0xde, 0x02, 0x04,  # Preamble (magic, version, flags)21      # Header:22      0x03, 0x42, 0x40, 0x00,  # ABI, Fixed FP offset, Fixed RA Offset, AUX header length23      0x03, 0x00, 0x00, 0x00,  # Number of FDEs24      0x01, 0x00, 0x00, 0x00,  # Number of FREs25      0x00, 0x10, 0x00, 0x00,  # FRE length26      0x00, 0x00, 0x00, 0x00,  # FDE offset27      0x00, 0x00, 0x00, 0x00,  # FRE offset28 29      # FDE[0]:30      0x00, 0x00, 0xde, 0x00,  # Start Address31      0xbe, 0x01, 0x00, 0x00,  # Size32      0x00, 0x00, 0x00, 0x00,  # Start FRE Offset33      0x01, 0x00, 0x00, 0x00,  # Number of FREs34      0x00, 0xde, 0xad, 0x00,  # Info, RepSize, Padding235 36      # FDE[1]:37      0x00, 0x00, 0xad, 0x00,  # Start Address38      0xbe, 0x01, 0x00, 0x00,  # Size39      0x00, 0x00, 0x00, 0x00,  # Start FRE Offset40      0x00, 0x00, 0x00, 0x00,  # Number of FREs41      0x00, 0xde, 0xad, 0x00,  # Info, RepSize, Padding242 43      # FDE[2]:44      0x00, 0x00, 0xbe, 0x00,  # Start Address45      0xbe, 0x01, 0x00, 0x00,  # Size46      0x00, 0x00, 0x00, 0x00,  # Start FRE Offset47      0x00, 0x00, 0x00, 0x00,  # Number of FREs48      0x00, 0xde, 0xad, 0x00,  # Info, RepSize, Padding249 50      # FRE[0]:51      0x05, 0x02, 0x10,        # Start Address, Info, Offset[0]52 53    ]54  - Name:            .rela.sframe55    Type:            SHT_RELA56    Flags:           [ SHF_INFO_LINK ]57    Link:            .symtab58    AddressAlign:    0x859    Info:            .sframe60    Relocations:61      - Offset:          0x1c62        Symbol:          .text63        Type:            R_X86_64_PC3264        Addend:          0x4265      - Offset:          0x3066        Symbol:          .text67        Type:            R_X86_64_PC3268      - Offset:          0x3069        Symbol:          .text70        Type:            R_X86_64_PC3271      - Offset:          0x4472        Symbol:          474773        Type:            R_X86_64_PC3274Symbols:75  - Name:            .text76    Type:            STT_SECTION77    Section:         .text78# CHECK-LABEL:SFrame section '.sframe' {79#       CHECK:    ABI: AMD64EndianLittle (0x3)80#       CHECK:    FuncDescEntry [0] {81#  CHECK-NEXT:      PC {82#  CHECK-NEXT:        Relocation: R_X86_64_PC3283#  CHECK-NEXT:        Symbol Name: .text84#  CHECK-NEXT:        Start Address: 0xDE004285#  CHECK-NEXT:      }86#       CHECK:      FREs [87#  CHECK-NEXT:        Frame Row Entry {88#  CHECK-NEXT:          Start Address: 0xDE004789#       CHECK:    FuncDescEntry [1] {90#  CHECK-NEXT:{{.*}}: warning: '[[FILE]]': more than one relocation at offset 0x3091#  CHECK-NEXT:      PC: 0xAD003092#       CHECK:    FuncDescEntry [2] {93#  CHECK-NEXT:{{.*}}: warning: '[[FILE]]': unable to read an entry with index 4747 from SHT_SYMTAB section with index {{[0-9]*}}: can't read an entry at 0x{{[0-9a-f]*}}: it goes past the end of the section (0x30)94