2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "SECTIONS { .rw : { *(.rw) } .text : { *(.text) } }" > %t.script
4 # RUN: ld.lld -o %t1 --script %t.script %t
5 # RUN: llvm-objdump --private-headers %t1 | FileCheck %s
7 ## We expect 2 PT_LOAD segments
8 # CHECK: Program Header:
10 # CHECK-NEXT: filesz {{0x[0-9a-f]+}} memsz {{0x[0-9a-f]+}} flags rw-
12 # CHECK-NEXT: filesz {{0x[0-9a-f]+}} memsz {{0x[0-9a-f]+}} flags r-x