manual relocation in u-boot
Hi,
Would it be correct to say that u-boot requires C-code to manually relocate things like pointers stored in statically initialized arrays?
If so, Is there any mention of this requirement in the U-boot documentation? (I tried to find some).
For example, "post_reloc()" in post/post.c
Thanks - Joe
Quoted 4 lines · In message <[email protected]> you wrote:
Would it be correct to say that u-boot requires C-code to manually relocate things like pointers stored in statically initialized arrays?
Yes, this is correct. Blame it on me - I just don't know if it is possible to make GC add the relevant entries to the GOT, and how.
Quoted 2 lines
If so, Is there any mention of this requirement in the U-boot documentation? (I tried to find some).
There are a few comments in the source code (like: "We have to relocate the command table manually" in lib_ppc/board.c) but without much explanation.
Feel free to submit a patch to improve this.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de panic: kernel trap (ignored)