[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-objcopy / ELF / keep-symbol-remove-section.test
blob8b5fc97085858d4c00d61d23a6ec86d18026866a
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy --remove-section .text --keep-symbol foo %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
5 !ELF
6 FileHeader:
7   Class:           ELFCLASS64
8   Data:            ELFDATA2LSB
9   Type:            ET_REL
10   Machine:         EM_X86_64
11 Sections:
12   - Name:            .text
13     Type:            SHT_PROGBITS
14     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
15     Address:         0x1000
16     AddressAlign:    0x0000000000000010
17     Size:            64
18 Symbols:
19   - Name:     foo
20     Type:     STT_FUNC
21     Section:  .text
22     Value:    0x1000
23     Size:     8
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
31 #CHECK-NEXT:    Type: None
32 #CHECK-NEXT:    Other: 0
33 #CHECK-NEXT:    Section: Undefined
34 #CHECK-NEXT:  }
35 #CHECK-NEXT:]