Skip to content
Commit 5f846c8b authored by Szabolcs Nagy's avatar Szabolcs Nagy
Browse files

aarch64: fix RTLD_START for BTI



Tailcalls must use x16 or x17 for the indirect branch instruction
to be compatible with code that uses BTI c at function entries.
(Other forms of indirect branches can only land on BTI j.)

Also added a BTI c at the ELF entry point of rtld, this is not
strictly necessary since the kernel does not use indirect branch
to get there, but it seems safest once building glibc itself with
BTI is supported.

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent fddbd7c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment