about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-03-31 17:32:14 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-07-08 15:02:37 +0100
commit5f846c8b0dea05554a48ec5ad13874cc757a886f (patch)
tree509d3c4ba1702ddaaab67da7a97f95643fa8d81a /sysdeps/unix/sysv/linux
parentfddbd7c0ef4960fc0a17712a95a146dd3f43de0a (diff)
downloadglibc-5f846c8b0dea05554a48ec5ad13874cc757a886f.tar.gz
glibc-5f846c8b0dea05554a48ec5ad13874cc757a886f.tar.xz
glibc-5f846c8b0dea05554a48ec5ad13874cc757a886f.zip
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: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux')
0 files changed, 0 insertions, 0 deletions