brintos

brintos / llvm-project-archived public Read only

0
0
Text · 863 B · 1aeffd6 Raw
32 lines · plain
1# This test checks long call negative offset boundary(0x8000000) for aarch64.2 3# REQUIRES: system-linux4 5# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \6# RUN:   %s -o %t.o7# RUN: %clang %cflags %t.o -o %t.exe -nostartfiles -fuse-ld=lld -Wl,-q \8# RUN:   -Wl,--script=%p/Inputs/long-jmp-offset-boundary.ld9# 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 %s11 12# The default alignment of the new program header table and the new text is13# HugePageSize(2MB).14# CHECK: [[#%x,ADDR:]]: [[#]]     	bl15# CHECK-SAME: 	0x[[#ADDR-0x8000000]] <foo>16 17	.text18	.section	foo_section,"ax",@progbits19	.globl	foo20	.type	foo,@function21foo:22	ret23	.size	foo, .-foo24 25	.section	main_section,"ax",@progbits26	.globl	_start27	.type	_start,@function28_start:29	bl	foo30	ret31	.size	_start, .-_start32