I tried objcopy with this command line:

arm-linux-objcopy -I elf32arm-little -O binary -S
bootldr.out bootldr.bin

but It seems not correct!!! my bootldr.out is 3729
bytes, but the bootldr.bin is 34512 bytes!!

I used objdump to disassemble the out file and I check
the ASM code, it is right and it is less than 0x600
bytes. The command is :

arm-linux-objdump -d bootldr.out > bootldr.asm

Anything wrong with the objcopy?


Gavin

--- Erik Mouw <[EMAIL PROTECTED]> wrote:
> On Sat, Oct 13, 2001 at 12:42:35PM -0700, gavin li
> wrote:
> > I have another question: 
> >     1. How to set start address of a function in
> gcc?
> > I can't find it in man.
> >     2. How to set data alignment in gcc? I also
> can't
> > find it in man.
> 
> From the gcc manual page:
> 
> WARNING
>        The  information  in  this man page is an
> extract from the
>        full documentation of the GNU C compiler, and
>  is  limited
>        to the meaning of the options.
> 
>        [...]
> 
>        For  complete and current documentation,
> refer to the Info
>        file `gcc' or the manual Using and  Porting 
> GNU  CC  (for
>        version  2.0).  Both are made from the
> Texinfo source file
>        gcc.texinfo.
> 
> Also look for the linker documentation (in
> binutils).
> 
> >     3. Which GNU program can change elf file to
> BIN
> > file. I find a elfToBin program in VxWorks, it
> seems
> > to be one of a GNU program, but I don't know which
> > archive include this program, please tell me.
> 
> objcopy -O binary elf-file binary-file
> 
> 
> Erik
> 
> -- 
> J.A.K. (Erik) Mouw, Information and Communication
> Theory Group, Department
> of Electrical Engineering, Faculty of Information
> Technology and Systems,
> Delft University of Technology, PO BOX 5031,  2600
> GA Delft, The Netherlands
> Phone: +31-15-2783635  Fax: +31-15-2781843  Email:
> [EMAIL PROTECTED]
> WWW: http://www-ict.its.tudelft.nl/~erik/


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to