Skip to content

Commit 92cd8bb

Browse files
committed
fixup! [BOLT][AArch64] Add support for short LLD thunks/veneers
1 parent 750113d commit 92cd8bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bolt/test/AArch64/veneer-lld-abs.s

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ near_function:
2424
ret
2525
.size near_function, .-near_function
2626

27+
## Force relocations against .text.
28+
.reloc 0, R_AARCH64_NONE
29+
2730
.section ".mytext", "ax"
2831
.balign 4
2932

@@ -42,7 +45,7 @@ __AArch64AbsLongThunk_far_function:
4245
.size __AArch64AbsLongThunk_far_function, .-__AArch64AbsLongThunk_far_function
4346

4447
## If a callee is closer than 256MB away, LLD may generate a thunk with a direct
45-
## jump to the callee. Note, that the name might still include "AbSLong".
48+
## jump to the callee. Note, that the name might still include "AbsLong".
4649
.global __AArch64AbsLongThunk_near_function
4750
.type __AArch64AbsLongThunk_near_function, %function
4851
__AArch64AbsLongThunk_near_function:

0 commit comments

Comments
 (0)