annotate lld/test/ELF/merge-relocatable.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 ## Test that we keep a SHT_REL[A] section which relocates a SHF_MERGE section
anatofuz
parents:
diff changeset
4 ## in -r mode. The relocated SHF_MERGE section is handled as non-mergeable.
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
anatofuz
parents:
diff changeset
7 # RUN: ld.lld -r %t.o -o %t
anatofuz
parents:
diff changeset
8 # RUN: llvm-readobj -S %t | FileCheck %s
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 # CHECK: Name: .rodata.cst8
anatofuz
parents:
diff changeset
11 # CHECK-NOT: }
anatofuz
parents:
diff changeset
12 # CHECK: Size: 16
anatofuz
parents:
diff changeset
13 # CHECK: Name: .rela.rodata.cst8
anatofuz
parents:
diff changeset
14 # CHECK-NOT: }
anatofuz
parents:
diff changeset
15 # CHECK: Size: 48
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 foo:
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 .section .rodata.cst8,"aM",@progbits,8,unique,0
anatofuz
parents:
diff changeset
20 .quad foo
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 .section .rodata.cst8,"aM",@progbits,8,unique,1
anatofuz
parents:
diff changeset
23 .quad foo