diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-04-29 11:49:20 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-07-08 15:02:38 +0100 |
commit | 1be3d6eb823d8b952fa54b7bbc90cbecb8981380 (patch) | |
tree | 4791e16bdb376f2a47f1e307d0316f7687cdd8e7 /sysdeps/aarch64/crtn.S | |
parent | 9e1751e6d693b73b95db2f6d8438dd80f1aeffe0 (diff) | |
download | glibc-1be3d6eb823d8b952fa54b7bbc90cbecb8981380.tar.gz glibc-1be3d6eb823d8b952fa54b7bbc90cbecb8981380.tar.xz glibc-1be3d6eb823d8b952fa54b7bbc90cbecb8981380.zip |
aarch64: Add pac-ret support to assembly files
Use return address signing in assembly files for functions that save LR when pac-ret is enabled in the compiler. The GNU property note for PAC-RET is not meaningful to the dynamic linker so it is not strictly required, but it may be used to track the security property of binaries. (The PAC-RET property is only set if BTI is set too because BTI implies working GNU property support.) Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/aarch64/crtn.S')
-rw-r--r-- | sysdeps/aarch64/crtn.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/aarch64/crtn.S b/sysdeps/aarch64/crtn.S index 0c1ef112c2..d21c21c203 100644 --- a/sysdeps/aarch64/crtn.S +++ b/sysdeps/aarch64/crtn.S @@ -41,8 +41,14 @@ .section .init,"ax",%progbits ldp x29, x30, [sp], 16 +#if HAVE_AARCH64_PAC_RET + AUTIASP +#endif RET .section .fini,"ax",%progbits ldp x29, x30, [sp], 16 +#if HAVE_AARCH64_PAC_RET + AUTIASP +#endif RET |