21 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3# RUN: echo "SECTIONS { \4# RUN: .foo : ONLY_IF_RO { *(.foo) } \5# RUN: .bar : {bar1 = .; *(.bar) } }" > %t1.script6# RUN: ld.lld -o %t1 --script %t1.script %t7# RUN: llvm-readobj --symbols %t1 | FileCheck %s8 9# CHECK: Name: bar110 11.global _start12_start:13 nop14 15.section .bar, "aw"16bar:17 .long 118 19.section .foo, "aw"20 .long 021