1 # In llvm-readobj, -s is an alias for --sections.
2 RUN: llvm-readobj -S %p/Inputs/trivial.obj.elf-i386 \
3 RUN: | FileCheck %s -check-prefix SEC
4 RUN: llvm-readobj --sections %p/Inputs/trivial.obj.elf-i386 \
5 RUN: | FileCheck %s -check-prefix SEC
7 # In llvm-readelf, -s is an alias for --symbols.
8 RUN: llvm-readelf -s %p/Inputs/trivial.obj.elf-i386 \
9 RUN: | FileCheck %s -check-prefix SYM
10 RUN: llvm-readelf --symbols %p/Inputs/trivial.obj.elf-i386 \
11 RUN: | FileCheck %s -check-prefix SYM
17 SEC-NEXT: Type: SHT_NULL (0x0)
18 SEC-NEXT: Flags [ (0x0)
20 SEC-NEXT: Address: 0x0
25 SEC-NEXT: AddressAlignment: 0
26 SEC-NEXT: EntrySize: 0
30 SEC-NEXT: Name: .text (5)
31 SEC-NEXT: Type: SHT_PROGBITS (0x1)
32 SEC-NEXT: Flags [ (0x6)
33 SEC-NEXT: SHF_ALLOC (0x2)
34 SEC-NEXT: SHF_EXECINSTR (0x4)
36 SEC-NEXT: Address: 0x0
37 SEC-NEXT: Offset: 0x40
41 SEC-NEXT: AddressAlignment: 16
42 SEC-NEXT: EntrySize: 0
45 SYM: Symbol table '.symtab' contains {{.*}} entries:
46 SYM-NEXT: Num: Value Size Type Bind Vis Ndx Name
47 SYM-NEXT: 0: {{.*}} NOTYPE {{.*}} UND
48 SYM-NEXT: 1: {{.*}} FILE {{.*}} trivial.ll
49 SYM-NEXT: 2: {{.*}} OBJECT {{.*}} .L.str