15 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: echo "SECTIONS { zed : ONLY_IF_RO { *(foo) *(bar) } }" > %t.script4# RUN: ld.lld -T %t.script %t.o -o %t.so -shared5# RUN: llvm-readobj -S %t.so | FileCheck %s6 7# CHECK: Sections [8# CHECK-NOT: zed9 10.section foo,"aw"11.quad 112 13.section bar, "a"14.quad 215