diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 20:49:57 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 20:49:57 +0000 |
commit | 86076775298353137c49e8c001528fab02a0fbd2 (patch) | |
tree | a2e00a14e30f7a1668ea0a255f3e79c2d9ca34cc | |
parent | 1d31f0f3800f00743ae627a38d55e8c7507bea75 (diff) | |
download | busybox-w32-86076775298353137c49e8c001528fab02a0fbd2.tar.gz busybox-w32-86076775298353137c49e8c001528fab02a0fbd2.tar.bz2 busybox-w32-86076775298353137c49e8c001528fab02a0fbd2.zip |
libbb: make const_int_0 reside in rodata
-rw-r--r-- | libbb/messages.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 = | |||
51 | "PATH=/sbin:/usr/sbin:/bin:/usr/bin" BB_ADDITIONAL_PATH; | 51 | "PATH=/sbin:/usr/sbin:/bin:/usr/bin" BB_ADDITIONAL_PATH; |
52 | 52 | ||
53 | 53 | ||
54 | const int const_int_0; | ||
55 | const int const_int_1 = 1; | 54 | const int const_int_1 = 1; |
55 | /* explicitly = 0, otherwise gcc may make it a common variable | ||
56 | * and it will end up in bss */ | ||
57 | const int const_int_0 = 0; | ||
56 | 58 | ||
57 | #include <utmp.h> | 59 | #include <utmp.h> |
58 | /* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */ | 60 | /* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */ |