This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[M16C-ELF] : S-REC file generated by ObjCopy is greater than input file (*.x or *.out)
- From: "Prafulla Thakare" <PrafullaT at KPITCummins dot com>
- To: <binutils at sources dot redhat dot com>
- Cc: "Prafulla Thakare" <PrafullaT at KPITCummins dot com>
- Date: Thu, 22 Dec 2005 14:59:34 +0530
- Subject: [M16C-ELF] : S-REC file generated by ObjCopy is greater than input file (*.x or *.out)
Hi,
We have downloaded the latest FSF sources for GCC and binutils for M16C
port.
We could successfully build the cross toolchain i.e. m32c-elf-*.
However, we are facing a strange problem while using binary utility
"m32c-elf-objcopy". The file size for S-REC file generated using objcopy
is
greater than the input file size.
Following are the commands used,
#m32c-elf-gcc foo.c -o my.x -mcpu=m16c -msim -g
Output File -> my.x {Size = 114KB}
#m32c-elf-objcopy -O srec my.x big.mot
Output File -> big.mot {Size = 227KB}
We are using binutils snapshot dated 21st December 2005,
"GNU objcopy 051221 20051221".
What could be the reason for above behavior?
Is it a bug with objcopy?
We have these observations with default linker script as well as custom
linker script.
Thanks in advance.
Regards,
Prafulla Thakare
KPIT Cummins InfoSystems Ltd.
Pune, India
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users.
Visit http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU tools were released on October 12, 2005.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~