brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 4ea9495 Raw
39 lines · plain
1# REQUIRES: x862# Verify that the fill between sections has a default of interrupt instructions3# (0xcc on x86/x86_64) for executable sections and zero for other sections.4 5# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o6# RUN: ld.lld %t1.o -o %t1.elf7# RUN: llvm-objdump -s %t1.elf > %t1.sections8# RUN: FileCheck %s --input-file %t1.sections --check-prefix=TEXT9# RUN: FileCheck %s --input-file %t1.sections --check-prefix=DATA10 11# RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t2.o12# RUN: ld.lld %t2.o -o %t2.elf13# RUN: llvm-objdump -s %t2.elf > %t2.sections14# RUN: FileCheck %s --input-file %t2.sections --check-prefix=TEXT15# RUN: FileCheck %s --input-file %t2.sections --check-prefix=DATA16 17# TEXT: Contents of section .text:18# TEXT-NEXT: 11cccccc cccccccc cccccccc cccccccc19# TEXT-NEXT: 2220# DATA: Contents of section .data:21# DATA-NEXT: 33000000 00000000 00000000 0000000022# DATA-NEXT: 4423 24.section .text.1,"ax",@progbits25.align 1626.byte 0x1127 28.section .text.2,"ax",@progbits29.align 1630.byte 0x2231 32.section .data.1,"a",@progbits33.align 1634.byte 0x3335 36.section .data.2,"a",@progbits37.align 1638.byte 0x4439