OSDN Git Service

asan: allow inline instrumentation for the kernel
[android-x86/external-llvm.git] / test / tools / llvm-objcopy / basic-align-copy.test
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy -O binary %t %t2
3 # RUN: od -t x2 %t2 | FileCheck %s
4 # RUN: wc -c < %t2 | FileCheck %s --check-prefix=SIZE
5
6 !ELF
7 FileHeader:
8   Class:           ELFCLASS64
9   Data:            ELFDATA2LSB
10   Type:            ET_EXEC
11   Machine:         EM_X86_64
12 Sections:
13   - Name:            .text
14     Type:            SHT_PROGBITS
15     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
16     AddressAlign:    0x0000000000001000
17     Content:         "c3c3c3c3"
18   - Name:            .data
19     Type:            SHT_PROGBITS
20     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
21     AddressAlign:    0x0000000000001000
22     Content:         "3232"
23 ProgramHeaders:
24   - Type: PT_LOAD
25     Flags: [ PF_X, PF_R ]
26     Sections:
27       - Section: .text
28   - Type: PT_LOAD
29     Flags: [ PF_R ]
30     Sections:
31       - Section: .data
32
33 # CHECK:       0000000 c3c3 c3c3 0000 0000 0000 0000 0000 0000
34 # CHECK-NEXT:  0000020 0000 0000 0000 0000 0000 0000 0000 0000
35 # CHECK-NEXT:  *
36 # CHECK-NEXT:  0010000 3232
37 # SIZE:        4098