diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-15 18:39:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-15 18:39:05 +0100 |
commit | fad8d6b6c0290e92b89cd18493c0c336f3619ee1 (patch) | |
tree | e6f6a6af668e966399c899e3416923f3e5e3fff5 | |
parent | 2aaacc1453e98bd24341e7dc6edd8e7fdf84e576 (diff) | |
download | busybox-w32-fad8d6b6c0290e92b89cd18493c0c336f3619ee1.tar.gz busybox-w32-fad8d6b6c0290e92b89cd18493c0c336f3619ee1.tar.bz2 busybox-w32-fad8d6b6c0290e92b89cd18493c0c336f3619ee1.zip |
build system: combat gcc zealotry in data alignment, now for x86_64 too
function old new delta
.rodata 182928 182620 -308
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | arch/x86_64/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86_64/Makefile b/arch/x86_64/Makefile new file mode 100644 index 000000000..16576fb81 --- /dev/null +++ b/arch/x86_64/Makefile | |||
@@ -0,0 +1,11 @@ | |||
1 | # ========================================================================== | ||
2 | # Build system | ||
3 | # ========================================================================== | ||
4 | |||
5 | # "Control how GCC aligns variables. | ||
6 | # Supported values for type are compat uses increased alignment value | ||
7 | # compatible uses GCC 4.8 and earlier, abi uses alignment value as specified by the psABI, | ||
8 | # and cacheline uses increased alignment value to match the cache line size. | ||
9 | # compat is the default." | ||
10 | # "abi" seems to be somewhat successful in preventing oversealous data alignment. | ||
11 | CFLAGS += $(call cc-option,-malign-data=abi,) | ||