opnsense-src/lib/csu/common
Konstantin Belousov 21502f9a92 crtend: accurately check for the start of .ctors
For the hypothetic situation where crtbegin.o is not linked into the
binary, but crtend.o is, which results in the missing starting sentinel
in the ctors array, be careful to not iterate past the start of the
section.

Reviewed by:	andrew, dim
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D48700
2025-01-29 00:59:20 +02:00
..
crtbegin.c crtbegin: accurately check for the end of .dtors 2025-01-29 00:59:20 +02:00
crtbrand.S csu: add the "Retain" flag to notes sections flag 2025-01-24 15:36:41 +02:00
crtend.c crtend: accurately check for the start of .ctors 2025-01-29 00:59:20 +02:00
csu_common.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
feature_note.S csu: add the "Retain" flag to notes sections flag 2025-01-24 15:36:41 +02:00
ignore_init_note.S csu: add the "Retain" flag to notes sections flag 2025-01-24 15:36:41 +02:00
notes.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00