summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-11-08 19:30:39 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-11 08:53:43 +0100
commit54911a588784f5cc1bfc06e6e62cb543228a7393 (patch)
treea2dc9daa8fe88015cf3fe278a256445c60777608 /arch
parentdf756884a3d9a6c033c961dbad7d13fca691dedb (diff)
downloadbarebox-54911a588784f5cc1bfc06e6e62cb543228a7393.tar.gz
barebox-54911a588784f5cc1bfc06e6e62cb543228a7393.tar.xz
arch/x86: fix link with recent gcc
Due to unwind tables being generated by recent versions of gcc by default, the x86 Barebox link fails with: ld: section .eh_frame loaded at [00000000000197c4,000000000001f31f] overlaps section .barebox_initcalls loaded at [00000000000197c4,0000000000019833] Passing -fno-unwind-tables -fno-asynchronous-unwind-tables avoids this problem. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 518b37fe2f..a78fa22ac6 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -5,7 +5,8 @@ machine-y := i386
TEXT_BASE = $(CONFIG_TEXT_BASE)
-CPPFLAGS += -march=i386 -m32 -DTEXT_BASE=$(TEXT_BASE)
+CPPFLAGS += -march=i386 -m32 -DTEXT_BASE=$(TEXT_BASE) \
+ -fno-unwind-tables -fno-asynchronous-unwind-tables
LDFLAGS += -m elf_i386
ifndef CONFIG_MODULES