2016-09-20 23:22:27 +08:00
|
|
|
# REQUIRES: x86
|
2020-03-20 08:15:33 +08:00
|
|
|
## Create a readonly PT_LOAD in the absence of PHDRS.
|
2016-09-20 23:22:27 +08:00
|
|
|
|
2020-03-20 08:15:33 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t
|
2018-03-13 23:47:14 +08:00
|
|
|
# RUN: ld.lld -o %t1 --script %s %t -shared
|
2020-03-20 08:26:35 +08:00
|
|
|
# RUN: llvm-readelf -l %t1 | FileCheck %s
|
2016-09-20 23:22:27 +08:00
|
|
|
|
2018-03-13 23:47:14 +08:00
|
|
|
SECTIONS {
|
|
|
|
}
|
|
|
|
|
2020-03-20 08:26:35 +08:00
|
|
|
# CHECK: Type {{.*}} Flg Align
|
2020-03-20 08:15:33 +08:00
|
|
|
# CHECK-NEXT: LOAD {{.*}} R 0x1000
|
2020-03-20 08:26:35 +08:00
|
|
|
# CHECK-NEXT: LOAD {{.*}} RW 0x1000
|