annotate lld/test/ELF/emit-relocs-mergeable2.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 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: x86
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 ## By default local symbols are discarded from SHF_MERGE sections.
anatofuz
parents:
diff changeset
4 ## With --emit-relocs we should keep them.
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
anatofuz
parents:
diff changeset
7 # RUN: ld.lld --emit-relocs %t.o -o %t.exe
anatofuz
parents:
diff changeset
8 # RUN: llvm-readobj --relocations %t.exe | FileCheck %s
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 # CHECK: R_X86_64_32S .Lfoo 0x8
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 .globl _start
anatofuz
parents:
diff changeset
13 _start:
anatofuz
parents:
diff changeset
14 movq .Lfoo+8, %rax
anatofuz
parents:
diff changeset
15 .section .rodata.cst16,"aM",@progbits,16
anatofuz
parents:
diff changeset
16 .Lfoo:
anatofuz
parents:
diff changeset
17 .quad 0
anatofuz
parents:
diff changeset
18 .quad 0