29 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3 4# RUN: echo "SECTIONS { \5# RUN: . = SIZEOF_HEADERS; \6# RUN: .text : { *(.text) } \7# RUN: .foo : {foo1 = .; *(.foo.*) foo2 = .; *(.bar) foo3 = .;} \8# RUN: }" > %t.script9# RUN: ld.lld -o %t1 --script %t.script %t -shared10# RUN: llvm-readobj --symbols %t1 | FileCheck %s11 12# CHECK: Name: foo113# CHECK-NEXT: Value: 0x33014 15# CHECK: Name: foo216# CHECK-NEXT: Value: 0x33817 18# CHECK: Name: foo319# CHECK-NEXT: Value: 0x33C20 21.section .foo.1,"a"22 .long 123 24.section .foo.2,"aw"25 .long 226 27 .section .bar,"aw"28 .long 329