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
20 # DATA: Contents of section .data:
21 # DATA-NEXT: 33000000 00000000 00000000 00000000
24 .section .text.1,"ax",@progbits
28 .section .text.2,"ax",@progbits
32 .section .data.1,"a",@progbits
36 .section .data.2,"a",@progbits