
Le 04/10/2010 10:57, Heiko Schocher a écrit :
./MAKEALL edminiv2 results:
text data bss dec hex filename
141376 4388 16640 162404 27a64 ./u-boot (for GOT reloc) 150160 3819 16640 170619 29a7b ./u-boot (for ELF reloc)
u-boot.bin size in bytes:
145764 (for GOT reloc) 153976 (for ELF reloc)
Huh...
The .rel.dyn table is 18472 bytes, and should eventually shrink by half, losing about 9 KB. That would bring the u-boot.bin size down to 145 KB, roughly the same size as GOT reloc -- plus we'd save a few code
... puuh ;-)
:)
Think also that if I'm not mistaken, the GOT has to move to RAM while the .rel.dyn and .dynsym tables will not be necessary once relocated (unless you want u-boot to be able to move around in RAM), so RAM footprint would be smaller.
You might get away with less relocs using -msdata -G 9999. Not sure how that works on arm.
Jocke