From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RqRND-00041l-LH for ptxdist@pengutronix.de; Thu, 26 Jan 2012 16:36:27 +0100 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1RqRND-0006m0-KI for ptxdist@pengutronix.de; Thu, 26 Jan 2012 16:36:27 +0100 Date: Thu, 26 Jan 2012 16:36:27 +0100 From: Michael Olbrich Message-ID: <20120126153627.GA25996@pengutronix.de> References: <1327590294-13263-1-git-send-email-post@lespocky.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1327590294-13263-1-git-send-email-post@lespocky.de> Subject: Re: [ptxdist] [PATCH] add patch for building at91bootstrap with gcc 4.6.x Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hmmm, I cannot trigger the problem (without the patch). Can you elaborate, what exact config/toolchain etc. your using? On Thu, Jan 26, 2012 at 04:04:54PM +0100, Alexander Dahl wrote: > > Signed-off-by: Alexander Dahl > --- > .../0002-fix-overlap-linker-error.patch | 23 ++++++++++++++++++++ > patches/Bootstrap-v1.16/series | 1 + > 2 files changed, 24 insertions(+), 0 deletions(-) > create mode 100755 patches/Bootstrap-v1.16/0002-fix-overlap-linker-error.patch > > diff --git a/patches/Bootstrap-v1.16/0002-fix-overlap-linker-error.patch b/patches/Bootstrap-v1.16/0002-fix-overlap-linker-error.patch > new file mode 100755 > index 0000000..a86979f > --- /dev/null > +++ b/patches/Bootstrap-v1.16/0002-fix-overlap-linker-error.patch > @@ -0,0 +1,23 @@ Please add a proper patch haeder here. Michael > +circumvent gcc 4.6.x linker overlap error, suggestion from AT91 forum at > +http://www.at91.com/forum/viewtopic.php/f,12/t,20624/ > +--- > + elf32-littlearm.lds | 6 +++++- > + 1 file changed, 5 insertions(+), 1 deletion(-) > + > +Index: Bootstrap-v1.16/elf32-littlearm.lds > +=================================================================== > +--- Bootstrap-v1.16.orig/elf32-littlearm.lds > ++++ Bootstrap-v1.16/elf32-littlearm.lds > +@@ -14,7 +14,11 @@ > + } > + > + /* collect all initialized .data sections */ > +- .data : AT ( ADDR (.text) + SIZEOF (.text) ) { > ++ . = ALIGN(4); > ++ .dummy : { > ++ _edummy = .; > ++ } > ++ .data : AT ( LOADADDR(.dummy) ) { > + _sdata = .; > + *(.vectors) > + *(.data) > diff --git a/patches/Bootstrap-v1.16/series b/patches/Bootstrap-v1.16/series > index 3355399..86f4119 100644 > --- a/patches/Bootstrap-v1.16/series > +++ b/patches/Bootstrap-v1.16/series > @@ -1 +1,2 @@ > 0001-crt0_gnu.S-fix-image-size.patch > +0002-fix-overlap-linker-error.patch > -- > 1.7.2.5 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de