diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-14 05:53:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-14 05:53:45 +0100 |
commit | db793480cb8ec3e5f878d1ec18b6ed5010c85e85 (patch) | |
tree | f0b398018025a481084f0afb6218a58dd1985b29 /arch | |
parent | a8e19608fc9d2f775a4f81eaf9c38a5844684237 (diff) | |
download | busybox-w32-db793480cb8ec3e5f878d1ec18b6ed5010c85e85.tar.gz busybox-w32-db793480cb8ec3e5f878d1ec18b6ed5010c85e85.tar.bz2 busybox-w32-db793480cb8ec3e5f878d1ec18b6ed5010c85e85.zip |
build system: combat gcc zealotry in data alignment
text data bss dec hex filename
1020934 559 5052 1026545 fa9f1 busybox_old
1020750 559 5052 1026361 fa939 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index 425361fd9..2fa008fa7 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -11,3 +11,11 @@ ifeq ($(CONFIG_STACK_OPTIMIZATION_386),y) | |||
11 | # from aligning stack to 16 bytes. (Which is gcc's way of supporting SSE). | 11 | # from aligning stack to 16 bytes. (Which is gcc's way of supporting SSE). |
12 | CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,) | 12 | CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,) |
13 | endif | 13 | endif |
14 | |||
15 | # "Control how GCC aligns variables. | ||
16 | # Supported values for type are compat uses increased alignment value | ||
17 | # compatible uses GCC 4.8 and earlier, abi uses alignment value as specified by the psABI, | ||
18 | # and cacheline uses increased alignment value to match the cache line size. | ||
19 | # compat is the default." | ||
20 | # "abi" seems to be somewhat successful in preventing oversealous data alignment. | ||
21 | CFLAGS += $(call cc-option,-malign-data=abi,) | ||