Rockbox Development > Starting Development and Compiling
relocation truncated to fit -> error when compiling mod.c for IPodmini2g
cynric:
the strange thing is however, that from the same patched sources i can successfully compile a build for another system (h120)..
i just tried the previous patches, which downto 0.11 all result in the same error; 0.10 and below were before some larger changes in svn and cannot be used anymore. however i am sure to have built a mini2g version with v0.10 on 070204.
So either the patch is broken only for certain platforms or there must be some changes done for the compiler command (maybe certain optimzations?)...
i will take a look at the codechanges from v.10 to .11 tomorrow, maybe i can figure something out from that...
Llorean:
Yes, but H120 uses a different version of GCC entirely. Try a Gigabeat build, and I suspect you'll encounter the same trouble. Or any iPod Build.
cynric:
gigabeat works, ipods fail (tested photo, video, 4g, both minis). is there a way to disable platform specific optimization for one .c file and compile in a kind of safe mode?
nls:
You must replace "static" before any functions in iram with "STATICIRAM" to make this work after some changes by amiconn on feb 17
Functions in iram are those followed by ICODE_ATTR in the declaration.
for example:
static void UpdateNote(void) ICODE_ATTR;
static void UpdateNote(void) {
would become:
STATICIRAM UpdateNote(void) ICODE_ATTR;
STATICIRAM void UpdateNote(void) {
cynric:
wow, thanks alot, nls. now it compiles and plays fine again!
Navigation
[0] Message Index
[*] Previous page
Go to full version