aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorEvan McClain <aeroevan@gmail.com>2013-01-01 21:22:27 -0500
committerZiyann <jaraidaniel@gmail.com>2014-11-19 21:07:50 +0100
commitb6c3b19a1d743f1dafb626bd8c2aa89615d376c6 (patch)
tree2634bdfc9cd8bc7c53b6ea7653adee9b11d969f1 /arch/arm/boot
parente0e50b3594e0fc197e5338a5acd81ad78e795b83 (diff)
downloadkernel_samsung_tuna-b6c3b19a1d743f1dafb626bd8c2aa89615d376c6.tar.gz
kernel_samsung_tuna-b6c3b19a1d743f1dafb626bd8c2aa89615d376c6.tar.bz2
kernel_samsung_tuna-b6c3b19a1d743f1dafb626bd8c2aa89615d376c6.zip
Fix build with linaro's gcc 4.7
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/compressed/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile
index 23aad072230..4d5f91f2c60 100644
--- a/arch/arm/boot/compressed/Makefile
+++ b/arch/arm/boot/compressed/Makefile
@@ -4,6 +4,8 @@
# create a compressed vmlinuz image from the original vmlinux
#
+plus_sec := $(call as-instr,.arch_extension sec,+sec)
+
OBJS =
# Ensure that mmcif loader code appears early in the image
@@ -96,7 +98,7 @@ KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
endif
ccflags-y := -fpic -fno-builtin
-asflags-y := -Wa,-march=all
+asflags-y := -Wa,-march=armv7-a$(plus_sec)
# Supply ZRELADDR to the decompressor via a linker symbol.
ifneq ($(CONFIG_AUTO_ZRELADDR),y)