annotate lld/test/ELF/x86-64-reloc-gotpc64.s @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children c4bab56944e8
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 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
anatofuz
parents:
diff changeset
3 // RUN: ld.lld %t.o -shared -o %t.so
anatofuz
parents:
diff changeset
4 // RUN: llvm-readelf -S %t.so | FileCheck %s -check-prefix=SECTION
anatofuz
parents:
diff changeset
5 // RUN: llvm-objdump -d %t.so | FileCheck %s
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // SECTION: .got.plt PROGBITS 00000000000032f0 0002f0 000018
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // 0x3300 (.got.plt) - 0x1274 = 8316
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
10 // CHECK: <gotpc64>:
150
anatofuz
parents:
diff changeset
11 // CHECK-NEXT: 1274: {{.*}} movabsq $8316, %r11
anatofuz
parents:
diff changeset
12 .global gotpc64
anatofuz
parents:
diff changeset
13 gotpc64:
anatofuz
parents:
diff changeset
14 movabsq $_GLOBAL_OFFSET_TABLE_-., %r11