58 lines · plain
1## Show which labels are printed in disassembly of an executable.2 3# RUN: yaml2obj %s -o %t4# RUN: llvm-objdump %t -d | FileCheck %s --implicit-check-not=stt_section \5# RUN: --implicit-check-not=fourth \6# RUN: --implicit-check-not=absolute \7# RUN: --implicit-check-not=other8 9# Match this line so the implicit check-nots don't match the path.10# CHECK: {{^.*}}file format elf64-x86-6411 12# CHECK: 0000000000004000 <first>:13# CHECK: 0000000000004001 <second>:14# CHECK: 0000000000004002 <third>:15 16--- !ELF17FileHeader:18 Class: ELFCLASS6419 Data: ELFDATA2LSB20 Type: ET_EXEC21 Machine: EM_X86_6422Sections:23 - Name: .text24 Type: SHT_PROGBITS25 Address: 0x400026 Flags: [SHF_ALLOC, SHF_EXECINSTR]27 Content: '9090909090'28 - Name: .text229 Type: SHT_PROGBITS30 Address: 0x400431 Flags: [SHF_ALLOC, SHF_EXECINSTR]32 Size: 033Symbols:34 - Name: first # Shows, with second, that symbol sizes are not used to delineate functions.35 Value: 0x400036 Section: .text37 Size: 0x238 - Name: second39 Value: 0x400140 Size: 0x141 Section: .text42 - Name: third # Shows, with fourth, that first symbol is picked.43 Value: 0x400244 Section: .text45 - Name: fourth46 Value: 0x400247 Section: .text48 - Name: stt_section # Shows that STT_SECTION symbols are ignored even if no other symbol present.49 Value: 0x400350 Type: STT_SECTION51 Section: .text52 - Name: absolute # Show that absolute symbols are ignored.53 Value: 0x400454 Index: SHN_ABS55 - Name: other # Show that symbols from other sections are ignored.56 Value: 0x400457 Section: .text258