Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-objdump / elf-symbol-visibility.test
blob48539f633bb3eb545e0dd281c73d2476e4889680
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objdump --syms %t | FileCheck %s
4 # CHECK:      SYMBOL TABLE:
5 # CHECK-NEXT: .text  00000000 default
6 # CHECK-NEXT: .text  00000000 .internal internal
7 # CHECK-NEXT: .text  00000000 .hidden hidden
8 # CHECK-NEXT: .text  00000000 .protected protected
9 # CHECK-NEXT: .text  00000000 0x20 mips_pic
11 !ELF
12 FileHeader:
13   Class:   ELFCLASS32
14   Data:    ELFDATA2LSB
15   Type:    ET_REL
16   Machine: EM_MIPS
17   Flags:   [ EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
18 Sections:
19   - Name: .text
20     Type: SHT_PROGBITS
21     Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
22 Symbols:
23   - Name:    default
24     Section: .text
25   - Name:    internal
26     Visibility: STV_INTERNAL
27     Section: .text
28   - Name:    hidden
29     Visibility: STV_HIDDEN
30     Section: .text
31   - Name:    protected
32     Visibility: STV_PROTECTED
33     Section: .text
34   - Name:    mips_pic
35     Other:   [ STO_MIPS_PIC ]
36     Section: .text