brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · ca49ba8 Raw
87 lines · yaml
1# RUN: yaml2obj %s -o %t2# RUN: llvm-readobj -r --stack-sizes %t | FileCheck %s3 4# CHECK:      Relocations [5# CHECK-NEXT:   Section (3) .rel.text {6# CHECK-NEXT:     0x0 R_BPF_64_64 g7# CHECK-NEXT:   }8# CHECK-NEXT:   Section (5) .rel.stack_sizes {9# CHECK-NEXT:     0x0 R_BPF_64_ABS64 .text10# CHECK-NEXT:   }11# CHECK-NEXT: ]12# CHECK:      StackSizes [13# CHECK-NEXT:   Entry {14# CHECK-NEXT:     Functions: [test]15# CHECK-NEXT:     Size: 0x016# CHECK-NEXT:   }17# CHECK-NEXT: ]18 19--- !ELF20FileHeader:21  Class:           ELFCLASS6422  Data:            ELFDATA2LSB23  Type:            ET_REL24  Machine:         EM_BPF25Sections:26  - Name:            .text27    Type:            SHT_PROGBITS28    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]29    AddressAlign:    0x830    Content:         '1801000000000000000000000000000061100000000000009500000000000000'31  - Name:            .stack_sizes32    Type:            SHT_PROGBITS33    Flags:           [ SHF_LINK_ORDER ]34    Link:            .text35    AddressAlign:    0x136    Entries:37      - Size:            0x038  - Name:            .bss39    Type:            SHT_NOBITS40    Flags:           [ SHF_WRITE, SHF_ALLOC ]41    AddressAlign:    0x442    Size:            0x443  - Name:            .rel.text44    Type:            SHT_REL45    Link:            .symtab46    AddressAlign:    0x847    Info:            .text48    Relocations:49      - Symbol:          g50        Type:            R_BPF_64_6451  - Name:            .rel.stack_sizes52    Type:            SHT_REL53    Link:            .symtab54    AddressAlign:    0x855    Info:            .stack_sizes56    Relocations:57      - Symbol:          .text58        Type:            R_BPF_64_ABS6459  - Type:            SectionHeaderTable60    Sections:61      - Name:            .strtab62      - Name:            .text63      - Name:            .rel.text64      - Name:            .stack_sizes65      - Name:            .rel.stack_sizes66      - Name:            .bss67      - Name:            .symtab68      - Name:            .shstrtab69Symbols:70  - Name:            t.c71    Type:            STT_FILE72    Index:           SHN_ABS73  - Name:            .text74    Type:            STT_SECTION75    Section:         .text76  - Name:            test77    Type:            STT_FUNC78    Section:         .text79    Binding:         STB_GLOBAL80    Size:            0x2081  - Name:            g82    Type:            STT_OBJECT83    Section:         .bss84    Binding:         STB_GLOBAL85    Size:            0x486...87