1 # RUN: yaml2obj %s -o %t.o
3 # Tests --keep-global-symbol when used in combination with --globalize-symbol on
7 # RUN: --globalize-symbol Local1 \
8 # RUN: --keep-global-symbol Local2 \
9 # RUN: --globalize-symbol Weak1 \
10 # RUN: --keep-global-symbol Weak2 \
11 # RUN: --globalize-symbol Global1 \
12 # RUN: --keep-global-symbol Global2 \
14 # RUN: llvm-readelf --symbols %t.2.o | FileCheck %s
25 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
44 # CHECK: Symbol table '.symtab' contains 7 entries:
45 # CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name
46 # CHECK-NEXT: 0: {{.*}} LOCAL {{.*}}
47 # CHECK-NEXT: 1: {{.*}} LOCAL {{.*}} Local2
48 # CHECK-NEXT: 2: {{.*}} GLOBAL {{.*}} Local1
49 # CHECK-NEXT: 3: {{.*}} GLOBAL {{.*}} Global1
50 # CHECK-NEXT: 4: {{.*}} GLOBAL {{.*}} Global2
51 # CHECK-NEXT: 5: {{.*}} GLOBAL {{.*}} Weak1
52 # CHECK-NEXT: 6: {{.*}} WEAK {{.*}} Weak2