1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 3// RUN: ld.lld %t.o -o %t.so -shared 4// RUN: llvm-readelf -l %t.so | FileCheck %s 5 6// Test that we don't create an empty executable PT_LOAD. 7 8// CHECK: PHDR {{.*}} R 0x8 9// CHECK-NEXT: LOAD {{.*}} R 0x1000 10// CHECK-NEXT: LOAD {{.*}} RW 0x1000 11// CHECK-NEXT: DYNAMIC {{.*}} RW 0x8 12