[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    svn commit: trunk/busybox/libbb
From:       vda () busybox ! net (vda at busybox ! net)
Date:       2007-09-27 20:49:58
Message-ID: 20070927204958.1EA1EA6076 () busybox ! net
[Download RAW message or body]

Author: vda
Date: 2007-09-27 13:49:57 -0700 (Thu, 27 Sep 2007)
New Revision: 20069

Log:
libbb: make const_int_0 reside in rodata



Modified:
   trunk/busybox/libbb/messages.c


Changeset:
Modified: trunk/busybox/libbb/messages.c
===================================================================
--- trunk/busybox/libbb/messages.c	2007-09-27 20:46:08 UTC (rev 20068)
+++ trunk/busybox/libbb/messages.c	2007-09-27 20:49:57 UTC (rev 20069)
@@ -51,8 +51,10 @@
 	"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" */


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic