aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-10-31 14:19:58 +0000
committerEd Maste <emaste@FreeBSD.org>2018-10-31 14:19:58 +0000
commit57706376c63d433935dbadcbee514c6eb7a395cd (patch)
tree10e4637fc75785e2c9c0d7fd3f0801d956a3f62a
parentd0a84acdfa2c52af4feafadff437e0b9482a39e7 (diff)
downloadsrc-57706376c63d433935dbadcbee514c6eb7a395cd.tar.gz
src-57706376c63d433935dbadcbee514c6eb7a395cd.zip
Add __used to __CTOR_LIST__ and __DTOR_LIST__
Enabling BSD_CRTBEGIN on amd64 resulted in error: unused variable '__CTOR_LIST__'. __CTOR_LIST__ is indeed unused in crtbegin.c; it marks the beginning of the .ctors array and is used in crtend.c. Annotate __DTOR_LIST__ as well for consistency. Discussed with: andrew MFC with: r339738 Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=339954
-rw-r--r--lib/csu/common/crtbegin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csu/common/crtbegin.c b/lib/csu/common/crtbegin.c
index bd51fec3d5c5..35231fa904f9 100644
--- a/lib/csu/common/crtbegin.c
+++ b/lib/csu/common/crtbegin.c
@@ -45,10 +45,10 @@ void *__dso_handle = 0;
#ifdef HAVE_CTORS
static void __do_global_dtors_aux(void) __used;
-static crt_func __CTOR_LIST__[] __section(".ctors") = {
+static crt_func __CTOR_LIST__[] __section(".ctors") __used = {
(crt_func)-1
};
-static crt_func __DTOR_LIST__[] __section(".dtors") = {
+static crt_func __DTOR_LIST__[] __section(".dtors") __used = {
(crt_func)-1
};