Mercurial > hg > CbC > CbC_llvm
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 |
rev | line source |
---|---|
150 | 1 # REQUIRES: x86 |
2 | |
3 ## By default local symbols are discarded from SHF_MERGE sections. | |
4 ## With --emit-relocs we should keep them. | |
5 | |
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o | |
7 # RUN: ld.lld --emit-relocs %t.o -o %t.exe | |
8 # RUN: llvm-readobj --relocations %t.exe | FileCheck %s | |
9 | |
10 # CHECK: R_X86_64_32S .Lfoo 0x8 | |
11 | |
12 .globl _start | |
13 _start: | |
14 movq .Lfoo+8, %rax | |
15 .section .rodata.cst16,"aM",@progbits,16 | |
16 .Lfoo: | |
17 .quad 0 | |
18 .quad 0 |