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
diff --git a/shell/msh.c b/shell/msh.c
index effdc01..f1b3f05 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -280,7 +280,7 @@
* -x: trace
* -u: unset variables net diagnostic
*/
-static char flags['z' - 'a' + 1];
+static char flags['z' - 'a' + 1] ALIGN1;
/* this looks weird, but is OK ... we index FLAG with 'a'...'z' */
#define FLAG (flags - 'a')
@@ -577,7 +577,7 @@
struct here *h_next;
};
-static const char * const signame[] = {
+static const char *const signame[] = {
"Signal 0",
"Hangup",
NULL, /* interrupt */
@@ -593,11 +593,10 @@
"SIGUSR2",
NULL, /* broken pipe */
"Alarm clock",
- "Terminated",
+ "Terminated"
};
-
struct res {
const char *r_name;
int r_val;
@@ -4209,7 +4208,7 @@
#define NDENT ((BLKSIZ+sizeof(struct dirent)-1)/sizeof(struct dirent))
static struct wdblock *cl, *nl;
-static char spcl[] = "[?*";
+static const char spcl[] ALIGN1= "[?*";
static struct wdblock *glob(char *cp, struct wdblock *wb)
{