|
Rockbox mail archiveSubject: Re: sh-elf-objcopy creates _large_ archos.bin outputRe: sh-elf-objcopy creates _large_ archos.bin output
From: Magnus Holmgren <lear_at_algonet.se>
Date: Sat, 07 Sep 2002 10:49:14 +0200 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": .rodata.str1.4 : { *(.rodata) } > DRAM That should fix your problem. -- Magnus HolmgrenReceived on 2002-09-07 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |