dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Size problems during build

Size problems during build

From: Magnus Holmgren <>
Date: Sun, 19 Jan 2003 11:33:51 +0100


While working on a new feature for Rockbox, I encountered a strange
problem: the new (player) build refused to load. I finally managed
figure out that some of my code caused the resulting archos.bin to not
be an even multiple of 4 bytes long (am I really the first one to
encounter this?). In my particular case, archos.bin was an odd number of
bytes long (I could make the size an even number of bytes, but not a
multiple of 4 bytes for some reason)...

One solution is to add the following to the end of the .rodata "section"
in the linker scripts:

   . = ALIGN(0x4);

Another would be to make scramble add the needed filler bytes. I guess
this would be a safer solution...

(Btw, Björn, this is the problem I talked to you about on IRC...)

This also made me notice a small bug in ROLO: rolo_error doesn't wait
for the error to be shown. I suspect the key release event makes
"button_get(true);" pretty much useless... :)

Magnus Holmgren
Received on 2003-01-19

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