svn commit: trunk/busybox/libbb
vda at busybox.net
vda at busybox.net
Thu Sep 27 20:49:58 UTC 2007
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" */
More information about the busybox-cvs
mailing list