aboutsummaryrefslogtreecommitdiff
path: root/lib/csu/common
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2018-10-29 17:55:26 +0000
committerAndrew Turner <andrew@FreeBSD.org>2018-10-29 17:55:26 +0000
commitfb7128c25e50fd4e98721397c0e7ff4dbf8a4af8 (patch)
tree80ff236354d804da5340e54840156c3b4095cb57 /lib/csu/common
parent5f2c3882308b84c81b8bfee159f4f9493ff0e07e (diff)
downloadsrc-fb7128c25e50fd4e98721397c0e7ff4dbf8a4af8.tar.gz
src-fb7128c25e50fd4e98721397c0e7ff4dbf8a4af8.zip
Make the .ctors, .dtors, and .jcr markers as static. They shouldn't be
accessible from out of the files they are defined in. MFC with: r339738 Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=339866
Diffstat (limited to 'lib/csu/common')
-rw-r--r--lib/csu/common/crtbegin.c6
-rw-r--r--lib/csu/common/crtend.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/csu/common/crtbegin.c b/lib/csu/common/crtbegin.c
index c5fd6fe57d34..bd51fec3d5c5 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;
-crt_func __CTOR_LIST__[] __section(".ctors") __hidden = {
+static crt_func __CTOR_LIST__[] __section(".ctors") = {
(crt_func)-1
};
-crt_func __DTOR_LIST__[] __section(".dtors") __hidden = {
+static crt_func __DTOR_LIST__[] __section(".dtors") = {
(crt_func)-1
};
@@ -81,7 +81,7 @@ asm (
extern void _Jv_RegisterClasses(void *) __weak_symbol;
static void register_classes(void) __used;
-crt_func __JCR_LIST__[] __section(".jcr") __used __hidden = { };
+static crt_func __JCR_LIST__[] __section(".jcr") __used = { };
#ifndef CTORS_CONSTRUCTORS
__attribute__((constructor))
diff --git a/lib/csu/common/crtend.c b/lib/csu/common/crtend.c
index 15eccb98e6cf..f37cf4e16c0d 100644
--- a/lib/csu/common/crtend.c
+++ b/lib/csu/common/crtend.c
@@ -35,10 +35,10 @@ typedef void (*crt_func)(void);
*/
static void __do_global_ctors_aux(void) __used;
-crt_func __CTOR_END__[] __section(".ctors") __used __hidden = {
+static crt_func __CTOR_END__[] __section(".ctors") __used = {
(crt_func)0
};
-crt_func __DTOR_END__[] __section(".dtors") __used __hidden = {
+static crt_func __DTOR_END__[] __section(".dtors") __used = {
(crt_func)0
};