reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ## Check we allow placing local symbols after global to ## .symtab and .dynsym. This allows us to produce broken outputs. # RUN: yaml2obj %s -o %t # RUN: llvm-readelf --symbols %t | FileCheck %s # CHECK: Symbol table '.dynsym' contains 3 entries: # CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name # CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND # CHECK-NEXT: 1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND dynamicGlobal # CHECK-NEXT: 2: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND dynamicLocal # CHECK: Symbol table '.symtab' contains 3 entries: # CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name # CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND # CHECK-NEXT: 1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND staticGlobal # CHECK-NEXT: 2: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND staticLocal --- !ELF FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB Type: ET_REL Machine: EM_X86_64 Symbols: - Name: staticGlobal Binding: STB_GLOBAL - Name: staticLocal Binding: STB_LOCAL DynamicSymbols: - Name: dynamicGlobal Binding: STB_GLOBAL - Name: dynamicLocal Binding: STB_LOCAL |