From b6c3b19a1d743f1dafb626bd8c2aa89615d376c6 Mon Sep 17 00:00:00 2001 From: Evan McClain Date: Tue, 1 Jan 2013 21:22:27 -0500 Subject: Fix build with linaro's gcc 4.7 --- arch/arm/boot/compressed/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch/arm') diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 23aad07..4d5f91f 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) -- cgit v1.1