
Dear Albert ARIBAUD,
In message 4CCF1AA5.809@free.fr you wrote:
As I said, u-boot-spl does not relocate, it only copies itself to its link-time location and jumps there, and it does this only if loaded somewhere else to boot (if I may say so). *Usually* it will be loaded at the right place and thus won't copy itself and jump to itself.
It still takes up some space, though. The copy and jump could actually be #ifdef's on CONFIG_NAND_SPL if everyone thinks it is safe -- please comment quickly as I'm preparing a patch set and that could go in it if agreed to.
I think the overhead for the test, copy & jump code is small enough to always keep this in - id adds robustness at little cost. And if the code is correctly loaded, and no copy takes place, there is basicly zero runtime overhead either.
Best regards,
Wolfgang Denk