aarch64: Return with ret from the la_pltexit path of _dl_runtime_profile

The la_pltexit path returned to the caller with 'br lr', and an indirect
branch must land on a BTI instruction (which the caller's return site
does not have).

Checked on aarch64-linux-gnu.

Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>
(cherry picked from commit 9976a737be)
This commit is contained in:
Adhemerval Zanella
2026-10-27 09:33:53 -03:00
parent 6b0445bd0b
commit 00f6968bbd
+3 -1
View File
@@ -321,7 +321,9 @@ _dl_runtime_profile:
add sp, sp, SF_SIZE + 16
cfi_adjust_cfa_offset (- SF_SIZE - 16)
br lr
/* Use ret instead of br: the caller's return site is not a BTI
landing pad. */
ret
cfi_endproc
.size _dl_runtime_profile, .-_dl_runtime_profile