9
0
Fork 0

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>
This commit is contained in:
Thomas Petazzoni 2013-11-08 19:30:39 +01:00 committed by Sascha Hauer
parent df756884a3
commit 54911a5887
1 changed files with 2 additions and 1 deletions

View File

@ -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