1 RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-nm \ 2 RUN: | FileCheck %s -check-prefix COFF 3 RUN: yaml2obj %p/Inputs/COFF/x86-64.yaml | llvm-nm \ 4 RUN | FileCheck %s -check-prefix COFF 5 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \ 6 RUN: | FileCheck %s -check-prefix ELF 7 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \ 8 RUN: | FileCheck %s -check-prefix ELF 9 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \ 10 RUN: | FileCheck %s -check-prefix macho 11 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \ 12 RUN: | FileCheck %s -check-prefix macho64 13 14 COFF: 00000000 d .data 15 COFF: 00000000 t .text 16 COFF: 00000000 d L{{_?}}.str 17 COFF: U {{_?}}SomeOtherFunction 18 COFF: 00000000 T {{_?}}main 19 COFF: U {{_?}}puts 20 21 ELF: U SomeOtherFunction 22 ELF: 00000000 T main 23 ELF: U puts 24 25 26 macho: 00000000 U _SomeOtherFunction 27 macho: 00000000 s _main 28 macho: 00000000 U _puts 29 30 macho64: 00000028 s L_.str 31 macho64: 00000000 u _SomeOtherFunction 32 macho64: 00000000 s _main 33 macho64: 00000000 u _puts 34