aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/relocation-common.s
blob: 71b1ac0e2e2490b66fe6d0a3c8c2373e8857e768 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: ld.lld %t -o %tout
// RUN: llvm-objdump -t -d %tout | FileCheck %s

.global _start
_start:
  movl $1, sym1(%rip)

.global sym1
.comm sym1,4,4

// CHECK: 201000: {{.*}} movl    $1, 4086(%rip)
// CHECK: 0000000000202000 g       .bss            00000004 sym1