Skip to content

Commit cedbecd

Browse files
author
Martin Schwidefsky
committed
s390/boot: fix boot of compressed kernel built with gcc 4.9
Add -fno-delete-null-pointer-checks to CFLAGS for the code in arch/s390/boot. Without the option a compressed kernel built with gcc 4.9 won't boot. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 6adbc92 commit cedbecd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/s390/boot/compressed/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ targets += misc.o piggy.o sizes.h head$(BITS).o
1212

1313
KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2
1414
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
15-
KBUILD_CFLAGS += $(cflags-y)
15+
KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks
1616
KBUILD_CFLAGS += $(call cc-option,-mpacked-stack)
1717
KBUILD_CFLAGS += $(call cc-option,-ffreestanding)
1818

0 commit comments

Comments
 (0)