aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/Makefile')
-rw-r--r--arch/x86_64/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/Makefile b/arch/x86_64/Makefile
index f5e48ba9bec..0fbc0283609 100644
--- a/arch/x86_64/Makefile
+++ b/arch/x86_64/Makefile
@@ -36,6 +36,7 @@ CFLAGS += -m64
CFLAGS += -mno-red-zone
CFLAGS += -mcmodel=kernel
CFLAGS += -pipe
+cflags-$(CONFIG_REORDER) += -ffunction-sections
# this makes reading assembly source easier, but produces worse code
# actually it makes the kernel smaller too.
CFLAGS += -fno-reorder-blocks