1 # A variation of gotoff-large-code-model.s that accesses GOT value
2 # with a slightly different code sequence.
4 # REQUIRES: system-linux
6 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
8 # RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
10 # RUN: llvm-bolt %t.exe --funcs init_impls --lite \
12 # RUN: %t.bolted | FileCheck %s
14 .section .rodata.str1.1,"aMS",@progbits,1
16 .string "Hello, world\n"
20 .type init_impls, @function
29 # R_X86_64_GOTPC64 _GLOBAL_OFFSET_TABLE_+0x2
30 1: movabsq $_GLOBAL_OFFSET_TABLE_
, %r11
32 # R_X86_64_GOTOFF64 .LC2
33 movabs $
.LC2@gotoff,%rax
34 lea
(%rbx
,%rax
,1),%rax
37 # R_X86_64_PLTOFF64 puts
38 movabs $puts@pltoff
,%rax
47 .size init_impls, .-init_impls