[U-Boot-Users] [PATCH] Fixup relocation patch.]

Grant Likely grant.likely at secretlab.ca
Tue Feb 13 17:48:42 CET 2007


On 2/13/07, Joakim Tjernlund <joakim.tjernlund at transmode.se> wrote:
> On Tue, 2007-02-13 at 17:21 +0100, Txema Lopez wrote:
> > Grant Likely wrote:
> >
> > >I needed to add the -mrelocatable flag to the linker flags in cpu/ppc4xx/config.mk (I did not remove the -fPIC flag when I did this).  Without -mrelocatable, the .fixup section would remain empty.
> > >
> > >
> > It's not the case of the MPC5200. It's enough with the -fPIC flag. It
> > could be a problem with the gcc cross compiler/linker for the ppc4xx.
> >
>
> I added -mrelocatable to gcc during compile, but not to the linking
> stage and that worked too.

Sorry, my mistake.  I needed the -mrelocatable flag for *compiling*,
not linking.  :)

g.

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195




More information about the U-Boot mailing list