freebsd-src/lib/csu/aarch64
Andrew Turner 522126fea7 csu: Teach csu about PAC and BTI
Add the Branch Target Identification (BTI) note to libc assembly
sources and Pointer Authentication Code (PAC) instructions to _init and
_fini.

_init and _fini may be called indirectly so need a BTI landing pad. As
they are non-leaf functions use the appropriate PAC instruction that
also guards against changing the link register.

As all object files need the note for any binary using these object files
we need to insert it in all asm files.

Reviewed by:	markj
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D42227
2023-10-30 17:55:44 +00:00
..
crt.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
crt1_c.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
crt1_s.S csu: Teach csu about PAC and BTI 2023-10-30 17:55:44 +00:00
crti.S csu: Teach csu about PAC and BTI 2023-10-30 17:55:44 +00:00
crtn.S csu: Teach csu about PAC and BTI 2023-10-30 17:55:44 +00:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend dirdeps: Add missing dependency files 2023-10-29 17:08:29 -04:00