2015-11-10 01:44:10 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: ld.lld %t -o %t2 --gc-sections
|
2015-11-10 01:44:10 +08:00
|
|
|
# RUN: llvm-readobj -t %t2 | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK-NOT: foo
|
|
|
|
|
|
|
|
.section .text,"ax",@progbits,unique,0
|
|
|
|
.globl foo
|
|
|
|
foo:
|
|
|
|
.cfi_startproc
|
|
|
|
.cfi_endproc
|
|
|
|
|
|
|
|
.section .text,"ax",@progbits,unique,1
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
.cfi_startproc
|
|
|
|
.cfi_endproc
|