Home | History | Annotate | Download | only in llvm-readobj
      1 RUN: llvm-readobj -s %p/Inputs/relocs.obj.elf-i386 --elf-output-style=GNU \
      2 RUN:   | FileCheck %s -check-prefix ELF32
      3 RUN: llvm-readobj -S %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
      4 RUN:   | FileCheck %s -check-prefix ELF64
      5 RUN: llvm-readobj --wide --sections \
      6 RUN:   %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
      7 RUN:   | FileCheck %s -check-prefix ELF64
      8 RUN: llvm-readobj -W --sections \
      9 RUN:   %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
     10 RUN:   | FileCheck %s -check-prefix ELF64
     11 RUN: llvm-readelf -W -S %p/Inputs/relocs.obj.elf-x86_64 \
     12 RUN:   | FileCheck %s -check-prefix ELF64
     13 
     14 ELF32:    Section Headers:
     15 ELF32-NEXT:      [Nr] Name              Type            Address  Off    Size   ES Flg Lk Inf Al
     16 ELF32-NEXT:      [ 0]                   NULL            00000000 000000 000000 00      0   0  0
     17 ELF32-NEXT:      [ 1] .text             PROGBITS        00000000 000034 0000f6 00  AX  0   0  4
     18 ELF32-NEXT:      [ 2] .rel.text         REL             00000000 000318 000148 08      6   1  4
     19 ELF32-NEXT:      [ 3] .data             PROGBITS        00000000 00012c 000000 00  WA  0   0  4
     20 ELF32-NEXT:      [ 4] .bss              NOBITS          00000000 00012c 000000 00  WA  0   0  4
     21 ELF32-NEXT:      [ 5] .shstrtab         STRTAB          00000000 00012c 000030 00      0   0  1
     22 ELF32-NEXT:      [ 6] .symtab           SYMTAB          00000000 00029c 000060 10      7   4  4
     23 ELF32-NEXT:      [ 7] .strtab           STRTAB          00000000 0002fc 00001b 00      0   0  1
     24 ELF32-NEXT:    Key to Flags:
     25 ELF32-NEXT:      W (write), A (alloc), X (execute), M (merge), S (strings), l (large)
     26 ELF32-NEXT:      I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
     27 ELF32-NEXT:      O (extra OS processing required) o (OS specific), p (processor specific)
     28 
     29 ELF64:    There are 8 section headers, starting at offset 0x180:
     30 ELF64:    Section Headers:
     31 ELF64-NEXT:      [Nr] Name              Type            Address          Off    Size   ES Flg Lk Inf Al
     32 ELF64-NEXT:      [ 0]                   NULL            0000000000000000 000000 000000 00     0   0  0
     33 ELF64-NEXT:      [ 1] .text             PROGBITS        0000000000000000 000040 00010a 00  AX 0   0  4
     34 ELF64-NEXT:      [ 2] .rela.text        RELA            0000000000000000 000430 000390 18     6   1  8
     35 ELF64-NEXT:      [ 3] .data             PROGBITS        0000000000000000 00014c 000000 00  WA 0   0  4
     36 ELF64-NEXT:      [ 4] .bss              NOBITS          0000000000000000 00014c 000000 00  WA 0   0  4
     37 ELF64-NEXT:      [ 5] .shstrtab         STRTAB          0000000000000000 00014c 000031 00     0   0  1
     38 ELF64-NEXT:      [ 6] .symtab           SYMTAB          0000000000000000 000380 000090 18     7   4  8
     39 ELF64-NEXT:      [ 7] .strtab           STRTAB          0000000000000000 000410 00001b 00     0   0  1
     40 ELF64-NEXT:    Key to Flags:
     41 ELF64-NEXT:      W (write), A (alloc), X (execute), M (merge), S (strings), l (large)
     42 ELF64-NEXT:      I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
     43 ELF64-NEXT:      O (extra OS processing required) o (OS specific), p (processor specific)
     44