37 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-nm -B -S %t | FileCheck --match-full-lines %s3# RUN: llvm-nm -W -B -S %t | count 04!ELF5FileHeader:6 Class: ELFCLASS647 Data: ELFDATA2LSB8 Type: ET_REL9 Machine: EM_X86_6410Sections:11 - Name: .text12 Type: SHT_PROGBITS13 - Name: .data14 Type: SHT_PROGBITS15Symbols:16 - Name: weak_func17 Type: STT_FUNC18 Section: .text19 Binding: STB_WEAK20 Size: 1721 - Name: weak_var22 Type: STT_OBJECT23 Section: .data24 Binding: STB_WEAK25 Size: 426 - Name: weak_extern_func27 Type: STT_FUNC28 Binding: STB_WEAK29 - Name: weak_extern_var30 Type: STT_OBJECT31 Binding: STB_WEAK32 33# CHECK: w weak_extern_func34# CHECK: v weak_extern_var35# CHECK: 0000000000000000 0000000000000011 W weak_func36# CHECK: 0000000000000000 0000000000000004 V weak_var37