[U-Boot-Users] -mrelocatable

Woodruff, Richard r-woodruff2 at ti.com
Wed May 19 17:43:50 CEST 2004


Perhaps I read the fragment wrong.  We needed to apply this patch as the
relocate option generated bad code or code which would not compile using
a version of GCC3.4 (depending on the relocation address it would fail
to compile or compile and generate bad code).

In general I think there are also changes which were made to the u-boot
source structure to allow them to compile properly with newer GCC's.
The provide patch is necessary for ARM boards with some recent versions
of GCC.  If your compiler already works, then disregard the message.

Regards,

Richard W.

> -----Original Message-----
> From: Woodruff, Richard
> Sent: Wednesday, May 19, 2004 10:38 AM
> To: 'Wolfgang Denk'; Jeff Tucker
> Cc: 'u-boot-users at lists.sourceforge.net'
> Subject: RE: [U-Boot-Users] -mrelocatable
> 
> I'm attaching a patch I got for GCC3.4 from Paul Brook at CodeSourcery
> which fixes the relocation problem.  I'm assuming the one discussed
below
> is the same one we ran into.
> 
> Regards,
> 
> Richard W.
> 
>
------------------------------------------------------------------------
--
> > I've included a file called er_objs.tar.gz . I contains a somewhat
> > reduced set of objects and the compile line to generate the error.
If
> > you us another linker you will get past the error.  As I said before
> > this is for the Q4-2003 release and the Q1-2004 release.
> >
> > [a0384864 at dta0384864 objs]$ ./command_line_for_link_error
> >
./libgcc.a(_udivsi3.oS)(.text+0xec):/work/GNU/CodeSourcery/gcc/gcc/con
> > fi
> 
> The following patch should fix this problem. It will be included in
future
> releases.
> 
> Paul
> 
> --- bfd/elf32-arm.h.orig	2004-04-22 22:11:15.000000000 -0400
> +++ bfd/elf32-arm.h	2004-04-22 22:28:37.000000000 -0400
> @@ -2229,6 +2229,8 @@ elf32_arm_relocate_section (output_bfd,
>  	        case R_ARM_PC24:
>  	        case R_ARM_ABS32:
>  		case R_ARM_THM_PC22:
> +	        case R_ARM_PLT32:
> +
>  	          if (info->shared
>  	              && (
>  			  (!info->symbolic && h->dynindx != -1)
> @@ -2262,11 +2264,6 @@ elf32_arm_relocate_section (output_bfd,
>  	            relocation = 0;
>  		  break;
> 
> -	        case R_ARM_PLT32:
> -	          if (h->plt.offset != (bfd_vma)-1)
> -	            relocation = 0;
> -		  break;
> -
>  	        default:
>  		  if (unresolved_reloc)
>  		    _bfd_error_handler
> 
> 
> 
> 
> 
> > -----Original Message-----
> > From: u-boot-users-admin at lists.sourceforge.net [mailto:u-boot-users-
> > admin at lists.sourceforge.net] On Behalf Of Wolfgang Denk
> > Sent: Wednesday, April 07, 2004 5:38 PM
> > To: Jeff Tucker
> > Cc: 'u-boot-users at lists.sourceforge.net'
> > Subject: Re: [U-Boot-Users] -mrelocatable
> >
> > In message <169996251.1081357990@[192.168.0.230]> you wrote:
> > >
> > > Wolfgang posted a couple days ago that you can't build the latest
U-
> Boot
> > > with old gcc tools. Perhaps you're not really using the latest
> compiler
> >
> > This is WRONG.
> >
> >
> > It's vice versa: You cannot build OLD U-Boot sources with latest
GCC.
> >
> > Best regards,
> >
> > Wolfgang Denk
> >
> > --
> > Software Engineering:  Embedded and Realtime Systems,  Embedded
Linux
> > Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email:
wd at denx.de
> > Fascinating is a word I use for the unexpected.
> > 	-- Spock, "The Squire of Gothos", stardate 2124.5
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO
of
> > GenToo technologies. Learn everything from fundamentals to system
> >
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > U-Boot-Users mailing list
> > U-Boot-Users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/u-boot-users




More information about the U-Boot mailing list