This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

RE: how to change some program to a srecord type program?



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



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