2015-09-19 06:13:25 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
|
2015-11-18 14:11:01 +08:00
|
|
|
// RUN: ld.lld %t -o %tout
|
2015-09-19 06:13:25 +08:00
|
|
|
// RUN: llvm-objdump -t -d %tout | FileCheck %s
|
|
|
|
// REQUIRES: x86
|
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
|
|
|
movl $1, sym1(%rip)
|
|
|
|
|
|
|
|
.global sym1
|
|
|
|
.comm sym1,4,4
|
|
|
|
|
2015-10-02 05:15:02 +08:00
|
|
|
// CHECK: 11000: {{.*}} movl $1, 4086(%rip)
|
|
|
|
// CHECK: 0000000000012000 g .bss 00000004 sym1
|