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: linking object and library files build from configtool into single file


Ho Shui Choy Stanley PS03B NCS wrote:
> 
> How do I link the object(vectors.o and extras.o) and library(libtarget.a and
> libextras.a) files built with the ecos configtool to a single file in other
> format (eg. srecord).

Link with your application to make an ELF file.

A hello world example is covered at:
http://sources.redhat.com/ecos/docs-latest/tutorials/arm/ecos-tutorial.13.html#pgfId=1741760

You can convert ELF files to SREC files with:

TARGET-objcopy -O srec file.elf file.srec

where TARGET is the tools prefix for your target, e.g. arm-elf, i386-elf,
etc.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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