2016-09-20 23:22:27 +08:00
|
|
|
# REQUIRES: x86
|
2018-03-13 23:47:14 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t
|
2016-09-20 23:22:27 +08:00
|
|
|
|
|
|
|
# Test that with linker scripts we don't create a RO PT_LOAD.
|
|
|
|
|
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
|
|
|
|
# CHECK-NEXT: LOAD {{.*}} R E 0x1000
|
|
|
|
# CHECK-NEXT: LOAD {{.*}} RW 0x1000
|