This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

crosstools 0.42 builds arm bootloader executable size > 800 MB


hi,
	I compiled vivi(arm bootloader of Samsung) with crosstools 0.42.
	After some Makefile and header hacks like "short-load-bytes" and
	"no-fpu", the compilation finishs normally, but the size of the output
	executable (vivi) is 871MB which should be more or less than 70k~!
	'ls -l' and 'du -sh' totally make me confused:
	$ ls -l vivi
	-rwxrwxr-x   1 yanxt   yanxt  871430121  Jul 6 21:53 vivi
	$ du -sh vivi
	72K     vivi
	the needed time for transferring it convices me that 'ls -l' seems
	to tell the truth.

	Dan suggested that it's mostly zeroes, cos it's asked to be loaded high 
	(or that's the default), and it had to pad with zeroes.
	Anyone can kindly convince me that please in the attached Makefile?
	I can't figure it out yet.
	How come this weird thing takes place?
	Any advice is appreciated in advance.

	Regards,


-- 
Alex Yan
阎啸天
2007-07-07
--- Begin Message ---
Yeah, sounds like it's mostly zeroes.  I bet you asked
for it to be loaded high (or that's the default),
and it had to pad with zeroes.

I've never dealt with this, you'll have to ask somebody
who knows more about linker maps, objcopy, and all that.

Try joining the mailing list, maybe it will accept your posts.
Or try posting on the binutils mailing list, maybe?

On 7/6/07, YanXT <xiaotian.yan@gmail.com> wrote:
size: vivi: File format not recognized
size: vivi.HY: File format not recognized
(vivi.HY is shipped with reference arm board)
$size vivi-elf
   text    data     bss     dec     hex filename
  51007    2828   10620   64455    fbc7 vivi-elf
the possibility that there are a lot of zero bytes in it is big:
$tar cjvf vivi-tbz2 vivi
$ls -l vivi-tbz2
-rw-rw-r--  1 yanxt    yanxt    28406  Jul  6 23:52  vivi-tbz2

it's stripped according to the Makefile:
/usr/local/arm/2.95.3/bin/arm-linux-nm -v -l vivi-elf > vivi.map
/usr/local/arm/2.95.3/bin/arm-linux-objcopy -O binary -S vivi-elf vivi
-R .comment -R .stab -R .stabstr



--
Wine for Windows ISVs: http://kegel.com/wine/isv


--- End Message ---
--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]