1# REQUIRES: x86 2## Create a readonly PT_LOAD in the absence of PHDRS. 3 4# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t 5# RUN: ld.lld -o %t1 --script %s %t -shared 6# RUN: llvm-readelf -l %t1 | FileCheck %s 7 8SECTIONS { 9} 10 11# CHECK: Type {{.*}} Flg Align 12# CHECK-NEXT: LOAD {{.*}} R 0x1000 13# CHECK-NEXT: LOAD {{.*}} RW 0x1000 14