brintos

brintos / llvm-project-archived public Read only

0
0
Text · 936 B · 52d234f Raw
36 lines · plain
1## --format-bsd is the default output format of llvm-nm. Show that the default2## and bsd output (including its aliases) match to confirm this.3 4# RUN: yaml2obj %s -o %t.o5# RUN: llvm-nm %t.o --format=bsd > %t.formatbsd.txt6# RUN: llvm-nm %t.o -f bsd > %t.fbsd.txt7# RUN: llvm-nm %t.o -B > %t.b.txt8# RUN: llvm-nm %t.o > %t.default.txt9 10# RUN: cmp %t.formatbsd.txt %t.default.txt11# RUN: cmp %t.formatbsd.txt %t.fbsd.txt12# RUN: cmp %t.formatbsd.txt %t.b.txt13 14## Verify that some output is actually printed.15# RUN: FileCheck %s --input-file=%t.default.txt16 17# CHECK:      0000000000000000 T sym118# CHECK-NEXT: 0000000000000000 W sym219 20--- !ELF21FileHeader:22  Class:   ELFCLASS6423  Data:    ELFDATA2LSB24  Type:    ET_REL25Sections:26  - Name:  .text27    Type:  SHT_PROGBITS28    Flags: [ SHF_ALLOC, SHF_EXECINSTR ]29Symbols:30  - Name:    sym131    Section: .text32    Binding: STB_GLOBAL33  - Name:    sym234    Section: .text35    Binding: STB_WEAK36