From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from top.free-electrons.com ([176.31.233.9] helo=mail.free-electrons.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Veqpo-0002Rj-Im for barebox@lists.infradead.org; Fri, 08 Nov 2013 18:31:09 +0000 Received: from localhost (AToulouse-651-1-90-186.w90-16.abo.wanadoo.fr [90.16.209.186]) by mail.free-electrons.com (Postfix) with ESMTPSA id DFCE47CA for ; Fri, 8 Nov 2013 19:30:40 +0100 (CET) From: Thomas Petazzoni Date: Fri, 8 Nov 2013 19:30:39 +0100 Message-Id: <1383935439-23623-3-git-send-email-thomas.petazzoni@free-electrons.com> In-Reply-To: <1383935439-23623-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1383935439-23623-1-git-send-email-thomas.petazzoni@free-electrons.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/2] arch/x86: fix link with recent gcc To: barebox@lists.infradead.org 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 --- arch/x86/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 518b37f..a78fa22 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 -- 1.8.1.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox