2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "SECTIONS { \
4 # RUN: bar : ONLY_IF_RO { sym1 = .; *(foo*) } \
5 # RUN: bar : ONLY_IF_RW { sym2 = .; *(foo*) } \
8 # RUN: ld.lld -o %t -T %t.script %t.o
9 # RUN: llvm-readobj -S --symbols %t | FileCheck %s
13 # CHECK-NEXT: Type: SHT_PROGBITS
15 # CHECK-NEXT: SHF_ALLOC
16 # CHECK-NEXT: SHF_WRITE
18 # CHECK-NEXT: Address: