glibc/sysdeps/aarch64
Szabolcs Nagy 8f62ca7328 aarch64: fix pac-ret support in _mcount
Currently gcc -pg -mbranch-protection=pac-ret passes signed return
address to _mcount, so _mcount now has to always strip pac from the
frompc since that's from user code that may be built with pac-ret.

This is gcc PR target/94791: signed pointers should not escape and get
passed across extern call boundaries, since that's an ABI break, but
because existing gcc has this issue we work it around in glibc until
that is resolved. This is compatible with a fixed gcc and it is a nop
on systems without PAuth support. The bug was introduced in gcc-7 with
-msign-return-address=non-leaf|all support which in gcc-9 got renamed
to -mbranch-protection=pac-ret|pac-ret+leaf|standard.

strip_pac uses inline asm instead of __builtin_aarch64_xpaclri since
that is not a documented api and not available in all supported gccs.
2020-06-22 14:53:20 +01:00
..
bits
fpu aarch/fpu: use generic builtins based math functions 2020-06-03 10:23:33 -07:00
multiarch AArch64: Merge Falkor memcpy and memmove implementations 2020-06-08 14:13:05 +01:00
nptl
sys
__longjmp.S
abort-instr.h
atomic-machine.h
bsd-_setjmp.c aarch64: Rename place holder .S files to .c 2020-06-12 14:34:39 +01:00
bsd-setjmp.c aarch64: Rename place holder .S files to .c 2020-06-12 14:34:39 +01:00
configure aarch64: configure check for pac-ret code generation 2020-06-22 14:53:20 +01:00
configure.ac aarch64: configure check for pac-ret code generation 2020-06-22 14:53:20 +01:00
crti.S aarch64: Add pac-ret support to assembly files 2020-06-22 14:53:20 +01:00
crtn.S aarch64: Add pac-ret support to assembly files 2020-06-22 14:53:20 +01:00
dl-bti.c aarch64: enable BTI at runtime 2020-06-22 14:53:10 +01:00
dl-dtprocnum.h
dl-irel.h
dl-link.sym
dl-machine.h aarch64: fix RTLD_START for BTI 2020-06-12 14:34:39 +01:00
dl-prop.h aarch64: enable BTI at runtime 2020-06-22 14:53:10 +01:00
dl-sysdep.h
dl-tls.h
dl-tlsdesc.h
dl-tlsdesc.S aarch64: Add pac-ret support to assembly files 2020-06-22 14:53:20 +01:00
dl-trampoline.S aarch64: Add pac-ret support to assembly files 2020-06-22 14:53:20 +01:00
dl-tunables.list
e_sqrtl.c
elf-initfini.h
Implies
jmpbuf-offsets.h
jmpbuf-unwind.h
ldsodefs.h
libc-tls.c
libm-test-ulps
libm-test-ulps-name
linkmap.h aarch64: enable BTI at runtime 2020-06-22 14:53:10 +01:00
machine-gmon.h aarch64: fix pac-ret support in _mcount 2020-06-22 14:53:20 +01:00
Makefile aarch64: enable BTI at runtime 2020-06-22 14:53:10 +01:00
math-tests-trap.h
mcount.c
memchr.S
memcmp.S
memcpy.S
memmove.c aarch64: Rename place holder .S files to .c 2020-06-12 14:34:39 +01:00
memrchr.S
memset-reg.h
memset.S
memusage.h
preconfigure
rawmemchr.S
setjmp.S
sfp-machine.h
sotruss-lib.c
stackinfo.h
start.S aarch64: Add BTI support to assembly files 2020-06-12 14:34:39 +01:00
stpcpy.S
strchr.S aarch64: MTE compatible strchr 2020-06-09 09:20:27 +01:00
strchrnul.S aarch64: MTE compatible strchrnul 2020-06-09 09:20:27 +01:00
strcmp.S
strcpy.S aarch64: fix strcpy and strnlen for big-endian [BZ #25824] 2020-05-15 12:15:56 +01:00
string_private.h
strlen.S aarch64: MTE compatible strlen 2020-06-09 09:21:11 +01:00
strncmp.S
strnlen.S aarch64: fix strcpy and strnlen for big-endian [BZ #25824] 2020-05-15 12:15:56 +01:00
strrchr.S
sysdep.h aarch64: fix pac-ret support in _mcount 2020-06-22 14:53:20 +01:00
tls-macros.h
tlsdesc.c
tlsdesc.sym
tst-audit.h
tst-ifunc-arg-1.c
tst-ifunc-arg-2.c
Versions