mirror of
git://sourceware.org/git/glibc.git
synced 2026-10-30 21:07:53 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user