From patchwork Tue Oct 2 06:57:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Hermant X-Patchwork-Id: 188407 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 7A4E62C00A4 for ; Tue, 2 Oct 2012 16:57:52 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 863338A38B; Tue, 2 Oct 2012 06:57:48 +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 Ycq+wmPxnSlI; Tue, 2 Oct 2012 06:57:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D3F698A35F; Tue, 2 Oct 2012 06:57:44 +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 0199C8F74A for ; Tue, 2 Oct 2012 06:57:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9FEE38A354 for ; Tue, 2 Oct 2012 06:57:43 +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 n675Pvem7IDY for ; Tue, 2 Oct 2012 06:57:42 +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.161]) by whitealder.osuosl.org (Postfix) with ESMTPS id A65968A360 for ; Tue, 2 Oct 2012 06:57:41 +0000 (UTC) X-RZG-AUTH: :K34Bck+6YrEgjuBfzmrkukPJhhbHEm1G+2SCnvvjhur6rsGj/jgixsrTkwdMQP1Z/nY9De0+2x8ba9IrY0g= X-RZG-CLASS-ID: mo00 Received: from [192.168.1.10] (ALyon-754-1-21-131.w90-53.abo.wanadoo.fr [90.53.252.131]) by smtp.strato.de (josoe mo43) (RZmta 30.20 DYNA|AUTH) with ESMTPA id Q07fc4o925xSZH for ; Tue, 2 Oct 2012 08:57:37 +0200 (CEST) Message-ID: <506A9061.3010300@calao-systems.com> Date: Tue, 02 Oct 2012 08:57:37 +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 Subject: [Buildroot] [PATCH] 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 --- ...at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch | 53 ++++++++++++++++++++ 1 file changed, 53 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..56947c7 --- /dev/null +++ b/boot/at91bootstrap/at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch @@ -0,0 +1,53 @@ +From 5a094e959cd216c1be148effc624eb12e2083de9 Mon Sep 17 00:00:00 2001 +From: Gregory Hermant +Date: Mon, 1 Oct 2012 16:54:43 +0200 +Subject: [PATCH] at91bootstrap-v1.16-ldscript-fix + +--- + crt0_gnu.S | 2 +- + elf32-littlearm.lds | 12 +++++++++++- + 2 files changed, 12 insertions(+), 2 deletions(-) + +diff --git a/crt0_gnu.S b/crt0_gnu.S +index 002feef..ea6581f 100644 +--- a/crt0_gnu.S ++++ b/crt0_gnu.S +@@ -191,7 +191,7 @@ _go: + + .align + _lp_data: +- .word _etext ++ .word _edummy + .word _sdata + .word _edata + +diff --git a/elf32-littlearm.lds b/elf32-littlearm.lds +index a33952f..17b1646 100644 +--- a/elf32-littlearm.lds ++++ b/elf32-littlearm.lds +@@ -10,11 +10,21 @@ SECTIONS + *(.rodata) /* read-only data (constants) */ + *(.rodata*) + . = ALIGN(4); ++ *(.glue_7) ++ . = ALIGN(4); ++ *(.eh_frame) ++ . = ALIGN(4); + _etext = . ; + } + + /* collect all initialized .data sections */ +- .data : AT ( ADDR (.text) + SIZEOF (.text) ) { ++ /* .data : AT ( ADDR (.text) + SIZEOF (.text) ) { */ ++ . = ALIGN(4); ++ .dummy : { ++ _edummy = .; ++ } ++ ++ .data : AT (LOADADDR(.dummy)) { + _sdata = .; + *(.vectors) + *(.data) +-- +1.7.9.5 + -- 1.7.9.5