zig/deps/lld/test/ELF/common-gc2.s

16 lines
292 B
ArmAsm
Raw Normal View History

2018-01-18 06:29:21 +08:00
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
# RUN: ld.lld -gc-sections -export-dynamic %t -o %t1
# RUN: llvm-readobj --dyn-symbols %t1 | FileCheck %s
2019-02-08 06:07:18 +08:00
# CHECK: Name: bar
# CHECK: Name: foo
2018-01-18 06:29:21 +08:00
.comm foo,4,4
.comm bar,4,4
.text
.globl _start
_start:
.quad foo