aarch64: Add pac-ret support to assembly files

System Internals / glibc - Szabolcs Nagy [arm.com] - 8 July 2020 14:02 UTC

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.)

1be3d6eb82 aarch64: Add pac-ret support to assembly files
sysdeps/aarch64/crti.S | 8 ++++++++
sysdeps/aarch64/crtn.S | 6 ++++++
sysdeps/aarch64/dl-tlsdesc.S | 8 ++++++++
sysdeps/aarch64/dl-trampoline.S | 18 ++++++++++++++++++
sysdeps/aarch64/sysdep.h | 8 +++++++-
5 files changed, 47 insertions(+), 1 deletion(-)

Upstream: sourceware.org


  • Share