brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 0b42de7 Raw
41 lines · plain
1# RUN: yaml2obj %s -o %t.o2# RUN: llvm-nm %t.o | FileCheck %s --check-prefix=DEFAULT3# RUN: llvm-nm --no-sort %t.o | FileCheck %s --check-prefix=NOSORT4# RUN: llvm-nm -p %t.o | FileCheck %s --check-prefix=NOSORT5 6!ELF7FileHeader:8  Class:   ELFCLASS649  Data:    ELFDATA2LSB10  Type:    ET_REL11  Machine: EM_X86_6412Sections:13  - Name: .text14    Type: SHT_PROGBITS15Symbols:16  - Name:    symbol_a17    Section: .text18    Value:   0x10019  - Name:    symbol_b20    Section: .text21    Value:   0x2522  - Name:    symbol_d23    Section: .text24    Value:   0x2525  - Name:    symbol_c26    Section: .text27    Value:   0x5028 29# The default is to sort by symbol name.30# DEFAULT:      0000000000000100 n symbol_a31# DEFAULT-NEXT: 0000000000000025 n symbol_b32# DEFAULT-NEXT: 0000000000000050 n symbol_c33# DEFAULT-NEXT: 0000000000000025 n symbol_d34 35# When --no-sort is specified then the symbols are output in36# symbol table order.37# NOSORT:      0000000000000100 n symbol_a38# NOSORT-NEXT: 0000000000000025 n symbol_b39# NOSORT-NEXT: 0000000000000025 n symbol_d40# NOSORT-NEXT: 0000000000000050 n symbol_c41