2017-02-16 16:41:19 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld --gc-sections %t.o -o %t
|
|
|
|
# RUN: llvm-objdump -section-headers %t | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK: .foo
|
|
|
|
# CHECK: .bar
|
|
|
|
# CHECK: .zed
|
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
.quad .foo
|
|
|
|
|
|
|
|
.section .foo,"a"
|
|
|
|
.quad 0
|
2017-04-05 06:35:16 +08:00
|
|
|
.section .bar,"ao",@progbits,.foo
|
2017-02-16 16:41:19 +08:00
|
|
|
.quad 0
|
2017-04-05 06:35:16 +08:00
|
|
|
.section .zed,"ao",@progbits,.foo
|
2017-02-16 16:41:19 +08:00
|
|
|
.quad 0
|