summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-02-17 21:27:34 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-19 11:03:48 +0100
commite231d265ea3111d3f5f72f63419ef3d12be11cd8 (patch)
tree8b3db3ddcab88dd72b392dc55e917c2678293bc4
parenta8e7944960052b1b1dacb6032840d8b87202b7de (diff)
downloadbarebox-e231d265ea3111d3f5f72f63419ef3d12be11cd8.tar.gz
barebox-e231d265ea3111d3f5f72f63419ef3d12be11cd8.tar.xz
tegra: add -fno-jump-tables to lowlevel code
Lowlevel code runs when not relocated yet, so we have to make extra sure not to emit jump-tables with absolute adresses when evaluating switch statements. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-tegra/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile
index 0fa843022b..791d5d45a7 100644
--- a/arch/arm/mach-tegra/Makefile
+++ b/arch/arm/mach-tegra/Makefile
@@ -1,5 +1,5 @@
-CFLAGS_tegra_avp_init.o := -mcpu=arm7tdmi -march=armv4t
-CFLAGS_pbl-tegra_avp_init.o := -mcpu=arm7tdmi -march=armv4t
+CFLAGS_tegra_avp_init.o := -mcpu=arm7tdmi -march=armv4t -fno-jump-tables
+CFLAGS_pbl-tegra_avp_init.o := -mcpu=arm7tdmi -march=armv4t -fno-jump-tables
lwl-y += tegra_avp_init.o
lwl-y += tegra_maincomplex_init.o
obj-y += tegra20.o