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

Txema Lopez
2007-02-13T16:21:33Z

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.

>However, -mrelocatable is a powerpc-only flag. I don't know what the magic flag is to do the same on arm/mips/etc.
>
It should be the -fPIC flag. But I think that the main problem is the
existence or not of a piece of code that copy the fixup section elements
from flash to ram and adjust it as the powerpc code does it. I think we
need the help of other architectures experts to resolve this doubt.

>It would be great if this can get sorted out for all u-boot targets. It's an invasive change though. I think your right that having it wrapped in a conditional is the right way to start, but I would start with a patchset that fixes up all powerpc targets first and get it out for comments/testing before it gets merged to mainline. Once powerpc is proven, then turn to look at the other architectures.
>
I agree.

> I'll happily help you with this task.
>
>
I'm sorry but I've got not time to do this task by now. I'm not sure if
this work must be done by only one persone or by the people who have the
equipment to test it. Anway, if you are a volunteer for me is OK.

BR,
Txema
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tlopez.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070213/4a2f2edd/attachment.vcf