diff --git a/sysdeps/aarch64/dl-trampoline.S b/sysdeps/aarch64/dl-trampoline.S index b40d8bb31b..412fb85906 100644 --- a/sysdeps/aarch64/dl-trampoline.S +++ b/sysdeps/aarch64/dl-trampoline.S @@ -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