1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
5 ## Check that all values of the null symbol are zeroes.
9 # CHECK-NEXT: Name: (0)
10 # CHECK-NEXT: Value: 0x0
12 # CHECK-NEXT: Binding: Local (0x0)
13 # CHECK-NEXT: Type: None (0x0)
14 # CHECK-NEXT: Other: 0
15 # CHECK-NEXT: Section: Undefined (0x0)
18 ## Check we emit a zero in st_name field when a symbol has no name.
20 # CHECK: Name: .text (0)
21 # CHECK-NEXT: Value: 0x0
23 # CHECK-NEXT: Binding: Local (0x0)
24 # CHECK-NEXT: Type: Section (0x3)
25 # CHECK-NEXT: Other: 0
26 # CHECK-NEXT: Section: .text (0x1)
38 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
43 # We need to have a named symbol, otherwise the original
44 # issue that was fixed is not reproduced by this test.