1 ## Show which labels are printed in disassembly of a relocatable object.
3 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-objdump %t -d | FileCheck %s --implicit-check-not=stt_section \
5 # RUN: --implicit-check-not=first \
6 # RUN: --implicit-check-not=second \
7 # RUN: --implicit-check-not=third \
8 # RUN: --implicit-check-not=fourth \
9 # RUN: --implicit-check-not=absolute \
10 # RUN: --implicit-check-not=other
12 # CHECK: {{.*}}: file format {{.*}}
13 # CHECK: Disassembly of section .text:
14 # CHECK: 0000000000000000 <first>:
15 # CHECK: 0000000000000001 <second>:
16 # CHECK: 0000000000000002 <third>:
17 # CHECK: Disassembly of section .text2:
18 # CHECK: 0000000000000004 <other>:
29 Flags: [SHF_ALLOC, SHF_EXECINSTR]
30 Content: '909090909090'
33 Flags: [SHF_ALLOC, SHF_EXECINSTR]
40 - Name: second # Shows, with first, that symbol sizes are not used to delineate functions.
44 - Name: third # Shows, with fourth, that first symbol is picked.
50 - Name: stt_section # Shows that STT_SECTION symbols are ignored even if no other symbol present.
54 - Name: absolute # Show that absolute symbols are ignored.
57 - Name: other # Show that symbols in other sections are ignored.