22 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3# RUN: echo "SECTIONS { .rw : { *(.rw) } .text : { *(.text) } }" > %t.script4# RUN: ld.lld -o %t1 --script %t.script %t5# RUN: llvm-objdump --private-headers %t1 | FileCheck %s6 7## We expect 2 PT_LOAD segments8# CHECK: Program Header:9# CHECK-NEXT: LOAD10# CHECK-NEXT: filesz {{0x[0-9a-f]+}} memsz {{0x[0-9a-f]+}} flags rw-11# CHECK-NEXT: LOAD12# CHECK-NEXT: filesz {{0x[0-9a-f]+}} memsz {{0x[0-9a-f]+}} flags r-x13# CHECK-NEXT: STACK14# CHECK-NEXT: filesz15 16.globl _start17_start:18 jmp _start19 20.section .rw, "aw"21 .quad 022