1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 3 4# RUN: echo "SECTIONS {.foo : {*(.foo.*)} }" > %t.script 5# RUN: ld.lld -o %t1 --script %t.script %t 6# RUN: llvm-objdump -section-headers %t1 | FileCheck %s 7# CHECK: Sections: 8# CHECK-NEXT: Idx Name Size Address Type 9# CHECK-NEXT: 0 00000000 0000000000000000 10# CHECK-NEXT: 1 .foo 00000008 0000000000000158 DATA 11# CHECK-NEXT: 2 .text 00000001 0000000000000160 TEXT DATA 12 13.global _start 14_start: 15 nop 16 17.section .foo.1,"a" 18foo1: 19 .long 0 20 21.section .foo.2,"aw" 22foo2: 23 .long 0 24