[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / default-fill.s
blob4ea949567dcc586b2b322a8af628e0b6bffba1ab
1 # REQUIRES: x86
2 # Verify that the fill between sections has a default of interrupt instructions
3 # (0xcc on x86/x86_64) for executable sections and zero for other sections.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
6 # RUN: ld.lld %t1.o -o %t1.elf
7 # RUN: llvm-objdump -s %t1.elf > %t1.sections
8 # RUN: FileCheck %s --input-file %t1.sections --check-prefix=TEXT
9 # RUN: FileCheck %s --input-file %t1.sections --check-prefix=DATA
11 # RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t2.o
12 # RUN: ld.lld %t2.o -o %t2.elf
13 # RUN: llvm-objdump -s %t2.elf > %t2.sections
14 # RUN: FileCheck %s --input-file %t2.sections --check-prefix=TEXT
15 # RUN: FileCheck %s --input-file %t2.sections --check-prefix=DATA
17 # TEXT: Contents of section .text:
18 # TEXT-NEXT: 11cccccc cccccccc cccccccc cccccccc
19 # TEXT-NEXT: 22
20 # DATA: Contents of section .data:
21 # DATA-NEXT: 33000000 00000000 00000000 00000000
22 # DATA-NEXT: 44
24 .section .text.1,"ax",@progbits
25 .align 16
26 .byte 0x11
28 .section .text.2,"ax",@progbits
29 .align 16
30 .byte 0x22
32 .section .data.1,"a",@progbits
33 .align 16
34 .byte 0x33
36 .section .data.2,"a",@progbits
37 .align 16
38 .byte 0x44