aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/boot/compressed/Makefile
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-09-22 21:57:11 +0200
committerHelge Deller <deller@gmx.de>2017-09-22 22:26:43 +0200
commit8c031ba63f8f2a9efc471cb45b2ff18271556544 (patch)
tree1f3b063ef0f04076f848a0bafb90742a2a630ad4 /arch/parisc/boot/compressed/Makefile
parentparisc: Reintroduce option to gzip-compress the kernel (diff)
downloadlinux-dev-8c031ba63f8f2a9efc471cb45b2ff18271556544.tar.xz
linux-dev-8c031ba63f8f2a9efc471cb45b2ff18271556544.zip
parisc: Unbreak bootloader due to gcc-7 optimizations
gcc-7 optimizes the byte-wise accesses of get_unaligned_le32() into word-wise accesses if the 32-bit integer output_len is declared as external. This panics then the bootloader since we don't have the unaligned access fault trap handler installed during boot time. Avoid this optimization by declaring output_len as byte-aligned and thus unbreak the bootloader code. Additionally, compile the boot code optimized for size. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/boot/compressed/Makefile')
-rw-r--r--arch/parisc/boot/compressed/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/boot/compressed/Makefile b/arch/parisc/boot/compressed/Makefile
index 5450a11c9d10..7d7e594bda36 100644
--- a/arch/parisc/boot/compressed/Makefile
+++ b/arch/parisc/boot/compressed/Makefile
@@ -15,7 +15,7 @@ targets += misc.o piggy.o sizes.h head.o real2.o firmware.o
KBUILD_CFLAGS := -D__KERNEL__ -O2 -DBOOTLOADER
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks
-KBUILD_CFLAGS += -fno-PIE -mno-space-regs -mdisable-fpregs
+KBUILD_CFLAGS += -fno-PIE -mno-space-regs -mdisable-fpregs -Os
ifndef CONFIG_64BIT
KBUILD_CFLAGS += -mfast-indirect-calls
endif