Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Odd size

Odd size

From: Johan Vromans <jvromans_at_squirrel.nl>
Date: Thu, 24 Apr 2003 22:17:46 +0200

Since a while when I build rockbox it ends up with an odd sized
binary. Most likely theory is that GCC 3.2.1 produces better optimized
(and hence smaller) code.
I've been advised to insert a couple of align instructions in
linkage.lds and this does, indeed, seem to cure it.
Maybe these aligns can be permanently added to the source?

--- linkage.lds~ Thu Apr 24 22:10:27 2003
+++ linkage.lds Thu Apr 24 22:10:27 2003
_at__at_ -20,6 +20,7 _at__at_
     .text :
     {
         *(.text)
+ . = ALIGN(0x4);
     } > DRAM
 
     .data :
_at__at_ -31,6 +32,7 _at__at_
     {
         *(.rodata)
         *(.rodata.str1.4)
+ . = ALIGN(0x4);
     } > DRAM
 
     .stack :

-- Johan
Received on 2003-04-24

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy