From patchwork Wed Oct 10 08:27:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Hermant X-Patchwork-Id: 190582 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 924D52C0084 for ; Wed, 10 Oct 2012 19:27:30 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9514EA0255; Wed, 10 Oct 2012 08:27:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MqR1HqEb87Sl; Wed, 10 Oct 2012 08:27:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B73A2A00E3; Wed, 10 Oct 2012 08:27:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 620F98F74A for ; Wed, 10 Oct 2012 08:27:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B81238D562 for ; Wed, 10 Oct 2012 08:27:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3EWMVgdT3Vz6 for ; Wed, 10 Oct 2012 08:27:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.160]) by whitealder.osuosl.org (Postfix) with ESMTPS id C44C48D55D for ; Wed, 10 Oct 2012 08:27:22 +0000 (UTC) X-RZG-AUTH: :K34Bck+6YrEgjuBfzmrkukPJhhbHEm1G+2SCnvvjhur6rsGj/jgixsrTkwdMQP1Z/nY9De0+2x7BiUE0i0o= X-RZG-CLASS-ID: mo00 Received: from [192.168.1.10] (ALyon-754-1-14-106.w90-53.abo.wanadoo.fr [90.53.249.106]) by smtp.strato.de (joses mo8) (RZmta 30.20 DYNA|AUTH) with ESMTPA id f06a35o9A7fC2z ; Wed, 10 Oct 2012 10:27:19 +0200 (CEST) Message-ID: <50753166.5010507@calao-systems.com> Date: Wed, 10 Oct 2012 10:27:18 +0200 From: =?ISO-8859-1?Q?Gr=E9gory_Hermant?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: buildroot@busybox.net Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH v3] at91bootstrap: fix gcc-4.6.x overlap linker issue X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Things always happen in threes... This patch fixes an issue detected in the linking stage of the at91bootstraploader from gcc-4.6.x release. Indeed from this gcc release the linking stage fails due to an overlap between text.startup and data section. To fix this issue we need to modify the linker script in order to add the text.startup input section into the text output section. Signed-off-by: Gregory Hermant --- ...at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 boot/at91bootstrap/at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch diff --git a/boot/at91bootstrap/at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch b/boot/at91bootstrap/at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch new file mode 100644 index 0000000..4222b6c --- /dev/null +++ b/boot/at91bootstrap/at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch @@ -0,0 +1,26 @@ +From 1a26120767aed8a2660fe840955d5d66d3469ce2 Mon Sep 17 00:00:00 2001 +From: Gregory Hermant +Date: Wed, 10 Oct 2012 08:45:46 +0200 +Subject: [PATCH] at91bootstrap: fix overlap linker issue + + +Signed-off-by: Gregory Hermant +--- + elf32-littlearm.lds | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/elf32-littlearm.lds b/elf32-littlearm.lds +index a33952f..4f3ba25 100644 +--- a/elf32-littlearm.lds ++++ b/elf32-littlearm.lds +@@ -7,6 +7,7 @@ SECTIONS + .text : { + _stext = .; + *(.text) ++ *(.text*) + *(.rodata) /* read-only data (constants) */ + *(.rodata*) + . = ALIGN(4); +-- +1.7.9.5 + -- 1.7.9.5