From ca466f385ac985a8b3491daa9f326dc480cdee70 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 6 Feb 2022 19:53:10 +0100 Subject: *: slap on a few ALIGN* where appropriate The result of looking at "grep -F -B2 '*fill*' busybox_unstripped.map" function old new delta .rodata 108586 108460 -126 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-126) Total: -126 bytes text data bss dec hex filename 970412 4219 1848 976479 ee65f busybox_old 970286 4219 1848 976353 ee5e1 busybox_unstripped Signed-off-by: Denys Vlasenko --- util-linux/hexdump.c | 2 +- util-linux/nsenter.c | 2 +- util-linux/unshare.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'util-linux') diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c index 57e7e8d..307a848 100644 --- a/util-linux/hexdump.c +++ b/util-linux/hexdump.c @@ -71,7 +71,7 @@ static void bb_dump_addfile(dumper_t *dumper, char *name) fclose(fp); } -static const char *const add_strings[] = { +static const char *const add_strings[] ALIGN_PTR = { "\"%07.7_ax \"16/1 \"%03o \"\"\n\"", /* b */ "\"%07.7_ax \"16/1 \"%3_c \"\"\n\"", /* c */ "\"%07.7_ax \"8/2 \" %05u \"\"\n\"", /* d */ diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c index e6339da..1aa045b 100644 --- a/util-linux/nsenter.c +++ b/util-linux/nsenter.c @@ -93,7 +93,7 @@ enum { * The user namespace comes first, so that it is entered first. * This gives an unprivileged user the potential to enter other namespaces. */ -static const struct namespace_descr ns_list[] = { +static const struct namespace_descr ns_list[] ALIGN_INT = { { CLONE_NEWUSER, "ns/user", }, { CLONE_NEWIPC, "ns/ipc", }, { CLONE_NEWUTS, "ns/uts", }, diff --git a/util-linux/unshare.c b/util-linux/unshare.c index 68ccdd8..06b9380 100644 --- a/util-linux/unshare.c +++ b/util-linux/unshare.c @@ -120,7 +120,7 @@ enum { NS_USR_POS, /* OPT_user, NS_USR_POS, and ns_list[] index must match! */ NS_COUNT, }; -static const struct namespace_descr ns_list[] = { +static const struct namespace_descr ns_list[] ALIGN_INT = { { CLONE_NEWNS, "mnt" }, { CLONE_NEWUTS, "uts" }, { CLONE_NEWIPC, "ipc" }, -- cgit v1.1