1 ## Show the disassembly behaviour when dynamic symbols are present.
2 # RUN: yaml2obj %s -o %t
4 ## Case 1: Both static and dynamic symbols are present. Only static
5 ## symbols are displayed.
6 # RUN: llvm-objdump -d %t | FileCheck %s --check-prefixes=CHECK,STATIC
8 ## Case 2: Only the dynamic symbols are present. These should be displayed, if
9 ## they meet the necessary criteria.
10 # RUN: llvm-objcopy --strip-all %t %t2
11 # RUN: llvm-objdump -d %t2 | FileCheck %s --check-prefixes=CHECK,DYN
13 # CHECK: Disassembly of section .text:
15 # STATIC-NEXT: 0000000000001000 <.text>:
16 # DYN-NEXT: 0000000000001000 <only_dyn>:
19 # STATIC-NEXT: 0000000000001001 <both_static>:
20 # DYN-NEXT: 0000000000001001 <both_dyn>:
23 # STATIC-NEXT: 0000000000001002 <only_static>:
26 # DYN-NEXT: 0000000000001003 <object>:
29 # DYN-NEXT: 0000000000001004 <zero_sized>:
32 # DYN-NEXT: 0000000000001005 <common>:
35 # DYN-NEXT: 0000000000001006 <loos>:
38 # DYN-NEXT: 0000000000001007 <loproc>:
43 # CHECK-NEXT: 100b:{{.*}}
55 Flags: [SHF_ALLOC, SHF_EXECINSTR]
57 Content: 909090909090909090909090
114 ## The rest of the dynamic symbols won't be used for various reasons.