Rockbox mail archive
Subject: Re: sh-elf-objcopy creates _large_ archos.bin output
From: Magnus Holmgren (lear_at_algonet.se)
Matthias Wächter wrote:
> Second action right after awaking was to install the sh cross compiler. I
> first installed it on my linux computer. I downloaded the current versions
> binutils-2.13 and gcc-3.2 (shouldn't I?) and compiled them both as noted
> in the Rockbox docs. All worked fine. Then came my first attempt to
> compile Rockbox.
> In short: after 'make' created a rather small archos.elf file (about 88
> kB) sh-elf-objcopy converts it into an amazingly large archos.bin of 151
> MB (!) - of course that's too much for the scrambler.
> Is there any known incompatibility with latest gcc and binutils? (Then
> maybe we should note this in the docs explicitly)
The linker script needs a fix (GCC 3.1 gives a warning about this). In
firmware/app.lds (I think; I have a player and need to change
player.lds), add the following, after the .rodata "section":
} > DRAM
That should fix your problem.
Page was last modified "Jan 10 2012" The Rockbox Crew