about summary refs log tree commit diff
path: root/sysdeps/nios2/dl-tls.h
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-02 09:27:05 +0100
commit4b3b0a983285237dbe9cce7a45f722b66a507c1d (patch)
tree68a04b016b6c5ddce45973ea0711b3ecdbd38a1e /sysdeps/nios2/dl-tls.h
parent83b93efe96bd800d3866ac3c79a91f822999ea03 (diff)
downloadglibc-4b3b0a983285237dbe9cce7a45f722b66a507c1d.tar.gz
glibc-4b3b0a983285237dbe9cce7a45f722b66a507c1d.tar.xz
glibc-4b3b0a983285237dbe9cce7a45f722b66a507c1d.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/nios2/dl-tls.h')
0 files changed, 0 insertions, 0 deletions