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>
This commit is contained in:
Denys Vlasenko 2020-12-15 18:39:05 +01:00
parent 2aaacc1453
commit fad8d6b6c0
1 changed files with 11 additions and 0 deletions

11
arch/x86_64/Makefile Normal file
View File

@ -0,0 +1,11 @@
# ==========================================================================
# Build system
# ==========================================================================
# "Control how GCC aligns variables.
# Supported values for type are compat uses increased alignment value
# compatible uses GCC 4.8 and earlier, abi uses alignment value as specified by the psABI,
# and cacheline uses increased alignment value to match the cache line size.
# compat is the default."
# "abi" seems to be somewhat successful in preventing oversealous data alignment.
CFLAGS += $(call cc-option,-malign-data=abi,)