summaryrefslogtreecommitdiff
path: root/libbb/messages.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-15 19:48:35 +0000
committerDenis Vlasenko2007-03-15 19:48:35 +0000
commitbff32ce4d5a22fe7664f77c96f281fe3b02a9c75 (patch)
tree820b303027a64c7ce81bc084ce30140792b36d3a /libbb/messages.c
parent1cc70225e7bfee447543ea38b08c7caeb6492c8b (diff)
downloadbusybox-bff32ce4d5a22fe7664f77c96f281fe3b02a9c75.zip
busybox-bff32ce4d5a22fe7664f77c96f281fe3b02a9c75.tar.gz
gzip: Improve ptr_to_globals trick, allowing gcc
to optimize better. -480 bytes.
Diffstat (limited to 'libbb/messages.c')
-rw-r--r--libbb/messages.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/messages.c b/libbb/messages.c
index 1a10a8c..12a165a 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -57,4 +57,5 @@ WTMP_FILE;
char bb_common_bufsiz1[BUFSIZ+1];
struct globals;
-struct globals *ptr_to_globals;
+/* Make it reside in R/W memory: */
+struct globals *const ptr_to_globals __attribute__ ((section (".data")));