This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: how to change some program to a srecord type program?
- To: Tony Ko <nhko at gctsemi dot com>
- Subject: RE: [ECOS] how to change some program to a srecord type program?
- From: Gary Thomas <gthomas at cambridge dot redhat dot com>
- Date: Thu, 24 May 2001 07:07:40 -0600 (MDT)
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat, Inc.
On 24-May-2001 Tony Ko wrote:
> hi.
>
> I compiled and linked my program with ecos body. such like below.
>> powerpc-eabi-gcc -c ~ ( compile )
>> powerpc-eabi-gcc -o test ~ (link)
>
> so the results are test file.
> what's the default type of this output test file?
ELF object file format.
> and how do I change this test file to srecord type?
> I know that I can use powerpc-eabi-objcopy. But don't know how.
% powerpc-eabi-objcopy -O srec test test.srec
In the future, use the resources you already have available:
powerpc-eabi-objcopy -h
man objcopy