libc/csu: Do not compile the finalizer() for PIC build

Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D41148
This commit is contained in:
Dmitry Chagin 2023-07-22 11:56:06 +03:00
parent 29edff0dea
commit 241a55b461

View file

@ -76,6 +76,7 @@ process_irelocs(void)
#error "Define platform reloc type"
#endif
#ifndef PIC
static void
finalizer(void)
{
@ -90,6 +91,7 @@ finalizer(void)
}
_fini();
}
#endif
static void
handle_static_init(int argc, char **argv, char **env)