
On Tue, Oct 5, 2010 at 9:01 AM, Albert Aribaud albert.aribaud@free.fr wrote:
This patch is *not* a submission for master!
It is a proof of concept of ELF relocations for ARM, hastily done in a day's work time for people on the list to try and to comment. All comments are welcome, as several suggestions have been made today on the list that I did not have time to incorporate, such as rewriting the elf table fixup code in C.
Yes, this would be nice. I imagine it would look somewhat like the version for x86. It would be nice to have a generic function which will work for all arches.
[snip]
With GOT relocs:
text data bss dec hex filename .bin size 141376 4388 16640 162404 27a64 ./u-boot 145764
With ELF relocs:
text data bss dec hex filename .bin size 149677 3727 16636 170040 29838 ./u-boot 153408
Hmm, I'm a bit suprised by the text increase - Can you provide a more detailed breakdown of before and after sizes by section?
As I have mentioned before, x86 has an in-RAM increase of only 284 bytes (0.3 %) with an additional 22424 bytes in .rel.dyn
Regards,
Graeme