decrease paddign: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly
text data bss dec hex filename 1021988 559 5052 1027599 fae0f busybox_old 1021236 559 5052 1026847 fab1f busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -49,7 +49,7 @@
|
||||
typedef int FAST_FUNC (*raid_probe_fptr)(struct volume_id *id, /*uint64_t off,*/ uint64_t size);
|
||||
typedef int FAST_FUNC (*probe_fptr)(struct volume_id *id /*, uint64_t off*/);
|
||||
|
||||
static const raid_probe_fptr raid1[] = {
|
||||
static const raid_probe_fptr raid1[] ALIGN_PTR = {
|
||||
#if ENABLE_FEATURE_VOLUMEID_LINUXRAID
|
||||
volume_id_probe_linux_raid,
|
||||
#endif
|
||||
@ -76,7 +76,7 @@ static const raid_probe_fptr raid1[] = {
|
||||
#endif
|
||||
};
|
||||
|
||||
static const probe_fptr raid2[] = {
|
||||
static const probe_fptr raid2[] ALIGN_PTR = {
|
||||
#if ENABLE_FEATURE_VOLUMEID_LVM
|
||||
volume_id_probe_lvm1,
|
||||
volume_id_probe_lvm2,
|
||||
@ -90,7 +90,7 @@ static const probe_fptr raid2[] = {
|
||||
};
|
||||
|
||||
/* signature in the first block, only small buffer needed */
|
||||
static const probe_fptr fs1[] = {
|
||||
static const probe_fptr fs1[] ALIGN_PTR = {
|
||||
#if ENABLE_FEATURE_VOLUMEID_FAT
|
||||
volume_id_probe_vfat,
|
||||
#endif
|
||||
@ -118,7 +118,7 @@ static const probe_fptr fs1[] = {
|
||||
};
|
||||
|
||||
/* fill buffer with maximum */
|
||||
static const probe_fptr fs2[] = {
|
||||
static const probe_fptr fs2[] ALIGN_PTR = {
|
||||
#if ENABLE_FEATURE_VOLUMEID_LINUXSWAP
|
||||
volume_id_probe_linux_swap,
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user