view lld/test/ELF/relocation-common.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 0572611fdcc8
children c4bab56944e8
line wrap: on
line source

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld %t.o -o %t
# RUN: llvm-objdump -t -d %t | FileCheck %s

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

.global sym1
.comm sym1,4,4

# CHECK: 0000000000202164 g     O .bss   0000000000000004 sym1
# CHECK: 201158: {{.*}} movl    $1, 4098(%rip)