*: slap on a few ALIGN1/2s where appropriate
The result of looking at "grep -F -B2 '*fill*' busybox_unstripped.map" text data bss dec hex filename 829901 4086 1904 835891 cc133 busybox_before 829665 4086 1904 835655 cc047 busybox Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -62,7 +62,7 @@ static unsigned nud_state_a2n(char *arg)
|
||||
"stale\0" "incomplete\0" "delay\0" "probe\0"
|
||||
"failed\0"
|
||||
;
|
||||
static uint8_t nuds[] = {
|
||||
static uint8_t nuds[] ALIGN1 = {
|
||||
NUD_PERMANENT,NUD_REACHABLE, NUD_NOARP,NUD_NONE,
|
||||
NUD_STALE, NUD_INCOMPLETE,NUD_DELAY,NUD_PROBE,
|
||||
NUD_FAILED
|
||||
|
@@ -84,7 +84,7 @@ ETH_P_IP
|
||||
|
||||
/* Keep declarations above and below in sync! */
|
||||
|
||||
static const char llproto_names[] =
|
||||
static const char llproto_names[] ALIGN1 =
|
||||
#define __PF(f,n) #n "\0"
|
||||
__PF(LOOP,loop)
|
||||
__PF(PUP,pup)
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
const char* FAST_FUNC ll_type_n2a(int type, char *buf)
|
||||
{
|
||||
static const char arphrd_name[] =
|
||||
static const char arphrd_name[] ALIGN1 =
|
||||
/* 0, */ "generic" "\0"
|
||||
/* ARPHRD_LOOPBACK, */ "loopback" "\0"
|
||||
/* ARPHRD_ETHER, */ "ether" "\0"
|
||||
@@ -105,7 +105,7 @@ const char* FAST_FUNC ll_type_n2a(int type, char *buf)
|
||||
|
||||
/* Keep these arrays in sync! */
|
||||
|
||||
static const uint16_t arphrd_type[] = {
|
||||
static const uint16_t arphrd_type[] ALIGN2 = {
|
||||
0, /* "generic" "\0" */
|
||||
ARPHRD_LOOPBACK, /* "loopback" "\0" */
|
||||
ARPHRD_ETHER, /* "ether" "\0" */
|
||||
|
@@ -94,9 +94,9 @@ exceptional conditions.
|
||||
#endif
|
||||
+#ifdef TIOCPKT
|
||||
+ int control;
|
||||
+ static const char lflow_on[] =
|
||||
+ static const char lflow_on[] ALIGN1 =
|
||||
+ {IAC, SB, TELOPT_LFLOW, LFLOW_ON, IAC, SE};
|
||||
+ static const char lflow_off[] =
|
||||
+ static const char lflow_off[] ALIGN1 =
|
||||
+ {IAC, SB, TELOPT_LFLOW, LFLOW_OFF, IAC, SE};
|
||||
+# define RESERVED sizeof(lflow_on)
|
||||
+#else
|
||||
|
@@ -109,7 +109,7 @@ enum {
|
||||
/*** Script execution code ***/
|
||||
|
||||
/* get a rough idea of how long an option will be (rounding up...) */
|
||||
static const uint8_t len_of_option_as_string[] = {
|
||||
static const uint8_t len_of_option_as_string[] ALIGN1 = {
|
||||
[OPTION_IP ] = sizeof("255.255.255.255 "),
|
||||
[OPTION_IP_PAIR ] = sizeof("255.255.255.255 ") * 2,
|
||||
[OPTION_STATIC_ROUTES ] = sizeof("255.255.255.255/32 255.255.255.255 "),
|
||||
|
@@ -146,10 +146,10 @@ struct host_info {
|
||||
char *host;
|
||||
int port;
|
||||
};
|
||||
static const char P_FTP[] = "ftp";
|
||||
static const char P_HTTP[] = "http";
|
||||
static const char P_FTP[] ALIGN1 = "ftp";
|
||||
static const char P_HTTP[] ALIGN1 = "http";
|
||||
#if ENABLE_FEATURE_WGET_OPENSSL || ENABLE_FEATURE_WGET_SSL_HELPER
|
||||
static const char P_HTTPS[] = "https";
|
||||
static const char P_HTTPS[] ALIGN1 = "https";
|
||||
#endif
|
||||
|
||||
#if ENABLE_FEATURE_WGET_LONG_OPTIONS
|
||||
|
Reference in New Issue
Block a user