[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-objcopy / ELF / abs-symbol.test
blob62c5873ba55042f0c32bc887e3eb6441793668da
1 # RUN: yaml2obj %s > %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_X86_64
11 Symbols:
12   - Name:     test
13     Index:    SHN_ABS
14     Value:    0x1234
15     Binding:  STB_GLOBAL
17 #CHECK:     Symbols [
18 #CHECK-NEXT:   Symbol {
19 #CHECK-NEXT:    Name:
20 #CHECK-NEXT:    Value: 0x0
21 #CHECK-NEXT:    Size: 0
22 #CHECK-NEXT:    Binding: Local (0x0)
23 #CHECK-NEXT:    Type: None (0x0)
24 #CHECK-NEXT:    Other: 0
25 #CHECK-NEXT:    Section: Undefined (0x0)
26 #CHECK-NEXT:  }
27 #CHECK-NEXT:  Symbol {
28 #CHECK-NEXT:    Name: test
29 #CHECK-NEXT:    Value: 0x1234
30 #CHECK-NEXT:    Size: 0
31 #CHECK-NEXT:    Binding: Global (0x1)
32 #CHECK-NEXT:    Type: None (0x0)
33 #CHECK-NEXT:    Other: 0
34 #CHECK-NEXT:    Section: Absolute (0xFFF1)
35 #CHECK-NEXT:  }
36 #CHECK-NEXT:]