1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 3# RUN: echo "SECTIONS { .text : { *(.text*) } }" > %t.script 4# RUN: ld.lld %t --gc-sections --script %t.script -o %t1 5# RUN: llvm-objdump --section-headers %t1 | FileCheck %s 6 7# CHECK: Sections: 8# CHECK-NEXT: Name Size 9# CHECK: .text 00000001 10 11.section .text.foo, "ax" 12.global _start 13_start: 14 nop 15 16.section .text.bar, "ax" 17.global bar 18bar: 19 nop 20