blob: 72b9414daca1090ed5b0ee8c17cded14100c69df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t
# Test that with linker scripts we don't create a RO PT_LOAD.
# RUN: ld.lld -o %t1 --script %s %t -shared
# RUN: llvm-readelf -l %t1 | FileCheck %s
SECTIONS {
}
# CHECK: Type {{.*}} Flg Align
# CHECK-NEXT: LOAD {{.*}} R E 0x1000
# CHECK-NEXT: LOAD {{.*}} RW 0x1000
|