1 # REQUIRES: system-linux
3 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
5 # RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
7 # RUN: llvm-bolt %t.exe --funcs init_impls --lite \
9 # RUN: %t.bolted | FileCheck %s
11 .section .rodata.str1.1,"aMS",@progbits,1
13 .string "Hello, world\n"
17 .type init_impls, @function
27 # R_X86_64_GOTPC64 _GLOBAL_OFFSET_TABLE_+0x9
28 movabsq $_GLOBAL_OFFSET_TABLE_-
1b, %r11
30 # R_X86_64_GOTOFF64 .LC2
31 movabs $
.LC2@gotoff,%rax
32 lea
(%rbx
,%rax
,1),%rax
35 # R_X86_64_PLTOFF64 puts
36 movabs $puts@pltoff
,%rax
45 .size init_impls, .-init_impls