From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luigi 'Comio' Mantellini Date: Thu, 03 Apr 2008 14:55:57 +0200 Subject: [U-Boot-Users] New Image format: headers hashes. In-Reply-To: <47F4C407.5020300@semihalf.com> References: <1206616392.23794.33.camel@localhost> <1206634003.13666.14.camel@localhost> <47F4A3FC.5000401@semihalf.com> <1207216264.27240.12.camel@localhost> <47F4C407.5020300@semihalf.com> Message-ID: <1207227357.6865.13.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Bartlomej, On gio, 2008-04-03 at 13:48 +0200, Bartlomiej Sieka wrote: ... > >> > > > > Before to make this test, you should strip the elf-file in order to omit > > the non-used code. Alternatively you should check the size of the > > u-boot.bin file (that is striped by definition). > > "objcopy -O binary" which is used to create u-boot.bin from u-boot > doesn't remove unused functions -- code for fit_image_set_hashes (and > other functions removed from under #ifdef USE_HOSTCC by the patch) is > present in u-boot.bin. I'm sorry, I believed (wrongly) that linker was sufficiently intelligent to discard the unused symbols and reallocate the rest. Do you know tools (or ld options) that allow to discard unused symbols/functions? Thanks a lot. today I learned something new. luigi > If you add enough of such dead code, you'll see the increase in size of > u-boot.bin, or run into linking problems -- depending on the particular > linker script used for the target. > > Regards, > Bartlomiej -- ______ Luigi Mantellini .'______'. R&D - Software (.' '.) Industrie Dial Face S.p.A. ( :=----=: ) Via Canzo, 4 ('.______.') 20068 Peschiera Borromeo (MI), Italy '.______.' Tel.: +39 02 5167 2813 Fax: +39 02 5167 2459 Ind. Dial Face Email: luigi.mantellini at idf-hit.com www.idf-hit.com GPG fingerprint: 3DD1 7B71 FBDF 6376 1B4A B003 175F E979 907E 1650