Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / empty-pt-load.s
blob0f2cccc1339b3994f021c007cc202df8305c230f
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
6 // Test that we don't create an empty executable PT_LOAD.
8 // CHECK: PHDR {{.*}} R 0x8
9 // CHECK-NEXT: LOAD {{.*}} R 0x1000
10 // CHECK-NEXT: LOAD {{.*}} RW 0x1000
11 // CHECK-NEXT: DYNAMIC {{.*}} RW 0x8