2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 # RUN: exec PT_LOAD FLAGS(0x4 | 0x1); \
5 # RUN: rw PT_LOAD FLAGS(0x4 | 0x2); \
8 # RUN: .text : { *(.text) } :exec \
9 # RUN: .empty : { *(.empty) } :rw \
10 # RUN: .rw : { *(.rw) } \
12 # RUN: ld.lld -o %t --script %t.script %t.o
13 # RUN: llvm-readelf -S -l %t | FileCheck %s
15 ## Check that the orphan section is placed correctly and belongs to
16 ## the correct segment.
18 # CHECK: Section Headers
23 # CHECK: Segment Sections
24 # CHECK-NEXT: .text .orphan