On Thu, 2008-04-10 at 01:03 +0200, Joakim Tjernlund wrote: > > -----Original Message----- > > From: kenneth johansson [mailto:[EMAIL PROTECTED] > > I had this misconception that the GOT was all that was needed for > > relocation. > > Could not find any useful information on what rules apply to gcc and > > binutils for handling stuff in this fixup section. > > > > Anybody have any information on this? > > Nope, never found anything either. To see a working one in u-boot, look at > mpc83xx start.S and its linker scripts. > > Jocke > >
Found some code from gcc that do the relocation in the same way we want in u-boot. http://gcc.gnu.org/viewcvs/trunk/gcc/config/rs6000/eabi.asm?revision=130805&view=markup I tried to call __eabi and link with libgcc plus ecrti.o, ecrtn.o but in the end I had one silly undefined symbol(.Lfini) that I could not get past the linker. But I think copying that code over into u-boot could not hurt. And considering the age of that code I can't imagine that anybody has a tool chain that can't handle using the -mrelocatable. It would be nice to remove the manual relocation done when it's not needed it is just confusing. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ U-Boot-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/u-boot-users
