From: Denis Vlasenko Date: Thu, 27 Sep 2007 20:49:57 +0000 (-0000) Subject: libbb: make const_int_0 reside in rodata X-Git-Tag: 1_8_0~131 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86076775298353137c49e8c001528fab02a0fbd2;p=oweals%2Fbusybox.git libbb: make const_int_0 reside in rodata --- diff --git a/libbb/messages.c b/libbb/messages.c index a64aa405e..06e9a588a 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 /* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */