20 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3# RUN: echo "SECTIONS { .text : { *(.text*) } }" > %t.script4# RUN: ld.lld %t --gc-sections --script %t.script -o %t15# RUN: llvm-objdump --section-headers %t1 | FileCheck %s6 7# CHECK: Sections:8# CHECK-NEXT: Name Size9# CHECK: .text 0000000110 11.section .text.foo, "ax"12.global _start13_start:14 nop15 16.section .text.bar, "ax"17.global bar18bar:19 nop20