Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-objcopy / ELF / mips-symbol.test
blob0e85df135323e3b540af567556c42430ae6a3145
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
5 !ELF
6 FileHeader:
7   Class:           ELFCLASS64
8   Data:            ELFDATA2LSB
9   Type:            ET_EXEC
10   Machine:         EM_MIPS
11 Symbols:
12   - Name:     test_mips_acommon
13     Index:    SHN_MIPS_ACOMMON
14     Value:    0x1234
15     Binding:  STB_GLOBAL
16   - Name:     test_mips_scommon
17     Index:    SHN_MIPS_SCOMMON
18     Value:    0x1237
19     Binding:  STB_GLOBAL
20   - Name:     test_mips_sundefined
21     Index:    SHN_MIPS_SUNDEFINED
22     Value:    0x1238
23     Binding:  STB_GLOBAL
25 # CHECK:     Symbols [
26 # CHECK-NEXT:   Symbol {
27 # CHECK-NEXT:    Name:
28 # CHECK-NEXT:    Value: 0x0
29 # CHECK-NEXT:    Size: 0
30 # CHECK-NEXT:    Binding: Local (0x0)
31 # CHECK-NEXT:    Type: None (0x0)
32 # CHECK-NEXT:    Other: 0
33 # CHECK-NEXT:    Section: Undefined (0x0)
34 # CHECK-NEXT:  }
35 # CHECK-NEXT:  Symbol {
36 # CHECK-NEXT:    Name: test_mips_acommon
37 # CHECK-NEXT:    Value: 0x1234
38 # CHECK-NEXT:    Size: 0
39 # CHECK-NEXT:    Binding: Global (0x1)
40 # CHECK-NEXT:    Type: None (0x0)
41 # CHECK-NEXT:    Other: 0
42 # CHECK-NEXT:    Section: Processor Specific (0xFF00)
43 # CHECK-NEXT:  }
44 # CHECK-NEXT:  Symbol {
45 # CHECK-NEXT:    Name: test_mips_scommon
46 # CHECK-NEXT:    Value: 0x1237
47 # CHECK-NEXT:    Size: 0
48 # CHECK-NEXT:    Binding: Global (0x1)
49 # CHECK-NEXT:    Type: None (0x0)
50 # CHECK-NEXT:    Other: 0
51 # CHECK-NEXT:    Section: Processor Specific (0xFF03)
52 # CHECK-NEXT:  }
53 # CHECK-NEXT:  Symbol {
54 # CHECK-NEXT:    Name: test_mips_sundefined
55 # CHECK-NEXT:    Value: 0x1238
56 # CHECK-NEXT:    Size: 0
57 # CHECK-NEXT:    Binding: Global (0x1)
58 # CHECK-NEXT:    Type: None (0x0)
59 # CHECK-NEXT:    Other: 0
60 # CHECK-NEXT:    Section: Processor Specific (0xFF04)
61 # CHECK-NEXT:  }
62 # CHECK-NEXT:]