From: DENX Support System Date: Sat, 1 Apr 2006 02:00:09 +0200 Subject: [DNX#2006040142001409] [U-Boot-Users] PATCH - Coldfire gcc3.4 compiling f [...] Message-ID: <1143849609.731824.309514446@castor.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142001409] was created: > I have been searching the archives for the solution to this problem when > compiling u-boot for the M5282EVB with GCC 3.4.0: > > /home/jate/tim-firmware/u-boot/cpu/mcf52x2/start.S:345: Fatal error: > Tried to convert PC relative conditional branch to absolute jump > > Turning on the -S option fixes this. This led to this error: > > flash.c: In function `flash_print_info': > flash.c:69: error: label at end of compound statement > > This is also fixed below. I do not have an M5282EVB board, so I cannot > test the binaries generated. Can anyone help test? > > - Jate S. > > Index: config.mk > =================================================================== > RCS file: /cvsroot/u-boot/u-boot/config.mk,v > retrieving revision 1.14 > diff -u -r1.14 config.mk > --- config.mk 4 Oct 2005 21:11:34 -0000 1.14 > +++ config.mk 6 Dec 2005 16:57:10 -0000 > @@ -139,7 +139,14 @@ > endif > endif > > +# turn jbsr into jsr for m68k > +ifeq ($(ARCH),m68k) > +ifeq ($(findstring 3.4,$(shell $(CC) --version)),3.4) > +AFLAGS_DEBUG := -Wa,-gstabs,-S > +endif > +else > AFLAGS_DEBUG := -Wa,-gstabs > +endif > AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS) > > LDFLAGS += -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) > $(PLATFORM_LDFLAGS) > > Index: flash.c > =================================================================== > RCS file: /cvsroot/u-boot/u-boot/board/m5282evb/flash.c,v > retrieving revision 1.1 > diff -u -r1.1 flash.c > --- flash.c 8 Dec 2003 01:34:37 -0000 1.1 > +++ flash.c 6 Dec 2005 16:30:08 -0000 > @@ -65,6 +65,7 @@ > printf ("\n"); > > Done: > + ; /* for gcc3.4.0 compiling */ > } > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ > U-Boot-Users mailing list > U-Boot-Users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/u-boot-users Your U-Boot support team