1 ## Check we are able to use integers as both
2 ## symbol name indices (st_name values) and symbol names.
3 # RUN: yaml2obj --docnum=1 %s -o %t
4 # RUN: llvm-readobj --symbols %t | FileCheck %s
6 # CHECK: Name: test (1)
7 # CHECK: Name: test (1)
24 ## Check we allow specifying both Name and StName at once.
25 ## In this case StName has priority, but the symbol Name is still added
26 ## to the symbol string table.
28 # RUN: yaml2obj --docnum=2 %s -o %t2
29 # RUN: llvm-readobj --symbols --sections --section-data -r --expand-relocs %t2 | FileCheck %s --check-prefix=BOTH
33 # BOTH-NEXT: 0000: 00666F6F 00 |.foo.|
37 # BOTH-NEXT: Section (1) .rela.data {
38 # BOTH-NEXT: Relocation {
39 # BOTH-NEXT: Offset: 0x0
40 # BOTH-NEXT: Type: R_X86_64_NONE (0)
41 # BOTH-NEXT: Symbol: <null> (1)
42 # BOTH-NEXT: Addend: 0x0
49 # BOTH-NEXT: Name: (0)
50 # BOTH-NEXT: Value: 0x0
52 # BOTH-NEXT: Binding: Local (0x0)
53 # BOTH-NEXT: Type: None (0x0)
55 # BOTH-NEXT: Section: Undefined (0x0)
58 # BOTH-NEXT: Name: (0)
59 # BOTH-NEXT: Value: 0x0
61 # BOTH-NEXT: Binding: Local (0x0)
62 # BOTH-NEXT: Type: None (0x0)
64 # BOTH-NEXT: Section: Undefined (0x0)