1# This test checks long call negative offset boundary(0x8000000) for aarch64. 2 3# REQUIRES: system-linux 4 5# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \ 6# RUN: %s -o %t.o 7# RUN: %clang %cflags %t.o -o %t.exe -nostartfiles -fuse-ld=lld -Wl,-q \ 8# RUN: -Wl,--script=%p/Inputs/long-jmp-offset-boundary.ld 9# RUN: llvm-bolt %t.exe -o %t.bolt.exe -skip-funcs="foo.*" 10# RUN: llvm-objdump -d -j .text --print-imm-hex %t.bolt.exe | FileCheck %s 11 12# The default alignment of the new program header table and the new text is 13# HugePageSize(2MB). 14# CHECK: [[#%x,ADDR:]]: [[#]] bl 15# CHECK-SAME: 0x[[#ADDR-0x8000000]] <foo> 16 17 .text 18 .section foo_section,"ax",@progbits 19 .globl foo 20 .type foo,@function 21foo: 22 ret 23 .size foo, .-foo 24 25 .section main_section,"ax",@progbits 26 .globl _start 27 .type _start,@function 28_start: 29 bl foo 30 ret 31 .size _start, .-_start 32