git: 241a55b4615e - main - libc/csu: Do not compile the finalizer() for PIC build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jul 2023 08:56:19 UTC
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=241a55b4615ef671583db13e6729b0028539c063
commit 241a55b4615ef671583db13e6729b0028539c063
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-07-22 08:56:06 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-07-22 08:56:06 +0000
libc/csu: Do not compile the finalizer() for PIC build
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D41148
---
lib/libc/csu/libc_start1.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/libc/csu/libc_start1.c b/lib/libc/csu/libc_start1.c
index d6a973bf0fe0..f0e708e405ce 100644
--- a/lib/libc/csu/libc_start1.c
+++ b/lib/libc/csu/libc_start1.c
@@ -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)