PATCH - Coldfire gcc3.4 compiling f [...]
Hello list,
inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142001409] was created:
<snip>
Quoted 57 lines
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 jumpTurning 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 statementThis 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.mkconfig.mk +7
-0@@ -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.1flash.cflash.c 6 Dec 2005 16:30:08 -0000 renamed from flash.c 8 Dec 2003 01:34:37 -0000 1.1 +1
-1@@ -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
Quoted 8 lines
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
</snip>
Your U-Boot support team