1 # RUN: yaml2obj %s -o %t -DMACHINE=HEXAGON
2 # RUN: obj2yaml %t | FileCheck %s -DMACHINE=HEXAGON -DNAME=SCOMMON_1
3 # RUN: yaml2obj %s -o %t -DMACHINE=MIPS
4 # RUN: obj2yaml %t | FileCheck %s -DMACHINE=MIPS -DNAME=TEXT
6 ## Test checks that we are able to handle symbols with special/reserved indices.
9 # CHECK-NEXT: - Name: absolute
10 # CHECK-NEXT: Index: SHN_ABS
11 # CHECK-NEXT: Binding: STB_GLOBAL
12 # CHECK-NEXT: Value: 0x1234
13 # CHECK-NEXT: - Name: common
14 # CHECK-NEXT: Index: SHN_COMMON
15 # CHECK-NEXT: Binding: STB_GLOBAL
16 # CHECK-NEXT: - Name: valid_index
17 # CHECK-NEXT: Section: .text
18 # CHECK-NEXT: Binding: STB_GLOBAL
19 # CHECK-NEXT: - Name: processor_specific_index
20 # CHECK-NEXT: Index: SHN_[[MACHINE]]_[[NAME]]
21 # CHECK-NEXT: Binding: STB_GLOBAL
22 # CHECK-NEXT: - Name: unknown_index
23 # CHECK-NEXT: Index: 0xFFFE
24 # CHECK-NEXT: Binding: STB_GLOBAL
31 Machine: EM_[[MACHINE]]
46 - Name: processor_specific_index