freebsd-src/lib/csu/aarch64
Andrew Turner 53120fbb68 csu: Find the main pointer through the GOT
Use the Global Offset Table to find the location of main in crt1. With
lld the old code would point to main@plt, however ld.bfd fails to link
when main is in a shared library.

Fix this by using the GOT address to find main as it works with both
lld and bfd.

Reviewed by:	jrtc27
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45259
2024-05-22 08:18:10 +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: Find the main pointer through the GOT 2024-05-22 08:18:10 +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