brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 4754fbb Raw
60 lines · plain
1## Show which labels are printed in disassembly of a relocatable object.2 3# RUN: yaml2obj %s -o %t4# 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=other11 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>:19 20--- !ELF21FileHeader:22  Class:   ELFCLASS6423  Data:    ELFDATA2LSB24  Type:    ET_REL25  Machine: EM_X86_6426Sections:27  - Name:    .text28    Type:    SHT_PROGBITS29    Flags:   [SHF_ALLOC, SHF_EXECINSTR]30    Content: '909090909090'31  - Name:    .text232    Type:    SHT_PROGBITS33    Flags:   [SHF_ALLOC, SHF_EXECINSTR]34    Content: '9090909090'35Symbols:36  - Name:    first37    Value:   038    Section: .text39    Size:    240  - Name:    second # Shows, with first, that symbol sizes are not used to delineate functions.41    Value:   142    Size:    143    Section: .text44  - Name:    third # Shows, with fourth, that first symbol is picked.45    Value:   246    Section: .text47  - Name:    fourth48    Value:   249    Section: .text50  - Name:    stt_section # Shows that STT_SECTION symbols are ignored even if no other symbol present.51    Value:   352    Type:    STT_SECTION53    Section: .text54  - Name:    absolute # Show that absolute symbols are ignored.55    Value:   456    Index:   SHN_ABS57  - Name:    other # Show that symbols in other sections are ignored.58    Value:   459    Section: .text260