summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2007-09-27 20:49:57 +0000
committerDenis Vlasenko2007-09-27 20:49:57 +0000
commit86076775298353137c49e8c001528fab02a0fbd2 (patch)
treea2e00a14e30f7a1668ea0a255f3e79c2d9ca34cc
parent1d31f0f3800f00743ae627a38d55e8c7507bea75 (diff)
downloadbusybox-86076775298353137c49e8c001528fab02a0fbd2.zip
busybox-86076775298353137c49e8c001528fab02a0fbd2.tar.gz
libbb: make const_int_0 reside in rodata
-rw-r--r--libbb/messages.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/messages.c b/libbb/messages.c
index a64aa40..06e9a58 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -51,8 +51,10 @@ const char bb_PATH_root_path[] ALIGN1 =
"PATH=/sbin:/usr/sbin:/bin:/usr/bin" BB_ADDITIONAL_PATH;
-const int const_int_0;
const int const_int_1 = 1;
+/* explicitly = 0, otherwise gcc may make it a common variable
+ * and it will end up in bss */
+const int const_int_0 = 0;
#include <utmp.h>
/* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */