annotate lld/test/ELF/gnu-ifunc-dso.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 2e18cbf3894f
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 ## Produce dynamic relocations (symbolic or GOT) for relocations to ifunc
anatofuz
parents:
diff changeset
4 ## defined in a DSO.
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 %S/Inputs/gnu-ifunc-dso.s -o %t1.o
anatofuz
parents:
diff changeset
7 # RUN: ld.lld -shared %t1.o -soname=so -o %t1.so
anatofuz
parents:
diff changeset
8 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
anatofuz
parents:
diff changeset
9 # RUN: ld.lld %t.o %t1.so -o %t
anatofuz
parents:
diff changeset
10 # RUN: llvm-readobj --dyn-relocations %t | FileCheck %s
anatofuz
parents:
diff changeset
11 # RUN: ld.lld -shared %t.o %t1.so -o %t.so
anatofuz
parents:
diff changeset
12 # RUN: llvm-readobj --dyn-relocations %t.so | FileCheck %s
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 # CHECK: Dynamic Relocations {
anatofuz
parents:
diff changeset
15 # CHECK-NEXT: R_X86_64_64 bar 0x0
anatofuz
parents:
diff changeset
16 # CHECK-NEXT: R_X86_64_GLOB_DAT foo 0x0
anatofuz
parents:
diff changeset
17 # CHECK-NEXT: }
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 .data
anatofuz
parents:
diff changeset
20 mov foo@gotpcrel(%rip), %rax
anatofuz
parents:
diff changeset
21 .quad bar