From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: Tony Ko Cc: ecos-discuss@sources.redhat.com Subject: RE: [ECOS] how to change some program to a srecord type program? Date: Thu, 24 May 2001 06:07:00 -0000 Message-id: References: <9860C773D04D834D83FD6FAD00A61E9311B6E9@gctsemi.gctsemi.com> X-SW-Source: 2001-05/msg00418.html 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