]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/Makefile
[ARM] 5386/2: unwind: Add Makefile and Kconfig entries for ARM stack unwinding
[linux-2.6-omap-h63xx.git] / arch / arm / Makefile
index 24e0f0187697009fb19de797f8e7f76042b94e9e..e7ef876e574ba53b9109bcfb1c670f05eca9b04b 100644 (file)
@@ -85,6 +85,10 @@ else
 CFLAGS_ABI     :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
 endif
 
+ifeq ($(CONFIG_ARM_UNWIND),y)
+CFLAGS_ABI     +=-funwind-tables
+endif
+
 # Need -Uarm for gcc < 3.x
 KBUILD_CFLAGS  +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm
 KBUILD_AFLAGS  +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float