1RUN: llvm-readobj -symbols %p/Inputs/symbols-proc-specific.elf-hexagon \ 2RUN: --elf-output-style=GNU | FileCheck %s -check-prefix ELF32 3RUN: llvm-readobj -symbols %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \ 4RUN: | FileCheck %s -check-prefix ELF64 5RUN: llvm-readobj -symbols %p/Inputs/gnuhash.so.elf-x86_64 --elf-output-style=GNU \ 6RUN: | FileCheck %s -check-prefix DYN 7 8ELF32: Symbol table '.symtab' contains 5 entries: 9ELF32-NEXT: Num: Value Size Type Bind Vis Ndx Name 10ELF32-NEXT: 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 11ELF32-NEXT: 1: 00000000 0 FILE LOCAL DEFAULT ABS a.c 12ELF32-NEXT: 2: 00000000 20 FUNC GLOBAL DEFAULT 2 main 13ELF32-NEXT: 3: 00000004 4 OBJECT GLOBAL DEFAULT PRC[0xff03] x 14ELF32-NEXT: 4: 00000000 4 OBJECT GLOBAL DEFAULT 3 y 15 16ELF64: Symbol table '.symtab' contains 6 entries: 17ELF64-NEXT: Num: Value Size Type Bind Vis Ndx Name 18ELF64-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 19ELF64-NEXT: 1: 0000000000000000 0 SECTION LOCAL DEFAULT 1 20ELF64-NEXT: 2: 0000000000000000 0 SECTION LOCAL DEFAULT 3 21ELF64-NEXT: 3: 0000000000000000 0 SECTION LOCAL DEFAULT 4 22ELF64-NEXT: 4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND _GLOBAL_OFFSET_TABLE_ 23ELF64-NEXT: 5: 0000000000000000 0 TLS GLOBAL DEFAULT UND sym 24 25DYN:Symbol table '.dynsym' contains 5 entries: 26DYN-NEXT: Num: Value Size Type Bind Vis Ndx Name 27DYN-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 28DYN-NEXT: 1: 00000000000001b8 0 NOTYPE GLOBAL DEFAULT 4 foo 29DYN-NEXT: 2: 0000000000200268 0 NOTYPE GLOBAL DEFAULT 5 _edata 30DYN-NEXT: 3: 0000000000200268 0 NOTYPE GLOBAL DEFAULT 5 _end 31DYN-NEXT: 4: 0000000000200268 0 NOTYPE GLOBAL DEFAULT 5 __bss_start 32 33DYN: Symbol table '.symtab' contains 12 entries: 34DYN-NEXT: Num: Value Size Type Bind Vis Ndx Name 35DYN-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 36DYN-NEXT: 1: 00000000000000e8 0 SECTION LOCAL DEFAULT 1 37DYN-NEXT: 2: 0000000000000120 0 SECTION LOCAL DEFAULT 2 38DYN-NEXT: 3: 0000000000000198 0 SECTION LOCAL DEFAULT 3 39DYN-NEXT: 4: 00000000000001b8 0 SECTION LOCAL DEFAULT 4 40DYN-NEXT: 5: 00000000002001b8 0 SECTION LOCAL DEFAULT 5 41DYN-NEXT: 6: 00000000002001b8 0 OBJECT LOCAL DEFAULT 5 _DYNAMIC 42DYN-NEXT: 7: 0000000000200268 0 OBJECT LOCAL DEFAULT 5 _GLOBAL_OFFSET_TABLE_ 43DYN-NEXT: 8: 0000000000200268 0 NOTYPE GLOBAL DEFAULT 5 __bss_start 44DYN-NEXT: 9: 00000000000001b8 0 NOTYPE GLOBAL DEFAULT 4 foo 45DYN-NEXT: 10: 0000000000200268 0 NOTYPE GLOBAL DEFAULT 5 _edata 46DYN-NEXT: 11: 0000000000200268 0 NOTYPE GLOBAL DEFAULT 5 _end 47