diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
commit | 6ca409e0e4c198fe3081346eebbae3f068fe605a (patch) | |
tree | 060cb05d99220a1eda399194d1209c269f0e8cd8 /shell/hush.c | |
parent | 4185548984357df91311f30c8e43d95f33922576 (diff) | |
download | busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2 busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip |
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index 275b69ef3..5796f1127 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -126,7 +126,8 @@ extern char **environ; /* This is in <unistd.h>, but protected with __USE_GNU */ | |||
126 | /* broken, of course, but OK for testing */ | 126 | /* broken, of course, but OK for testing */ |
127 | static const char *indenter(int i) | 127 | static const char *indenter(int i) |
128 | { | 128 | { |
129 | static const char blanks[] = " "; | 129 | static const char blanks[] ALIGN1 = |
130 | " "; | ||
130 | return &blanks[sizeof(blanks) - i - 1]; | 131 | return &blanks[sizeof(blanks) - i - 1]; |
131 | } | 132 | } |
132 | #define debug_printf_clean(...) fprintf(stderr, __VA_ARGS__) | 133 | #define debug_printf_clean(...) fprintf(stderr, __VA_ARGS__) |
@@ -3656,7 +3657,7 @@ static void setup_job_control(void) | |||
3656 | int hush_main(int argc, char **argv); | 3657 | int hush_main(int argc, char **argv); |
3657 | int hush_main(int argc, char **argv) | 3658 | int hush_main(int argc, char **argv) |
3658 | { | 3659 | { |
3659 | static const char version_str[] = "HUSH_VERSION="HUSH_VER_STR; | 3660 | static const char version_str[] ALIGN1 = "HUSH_VERSION="HUSH_VER_STR; |
3660 | static const struct variable const_shell_ver = { | 3661 | static const struct variable const_shell_ver = { |
3661 | .next = NULL, | 3662 | .next = NULL, |
3662 | .varstr = (char*)version_str, | 3663 | .varstr = (char*)version_str, |