avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Including a binary file as resource


From: Andy Warner
Subject: Re: [avr-gcc-list] Including a binary file as resource
Date: Tue, 21 Dec 2004 09:38:11 -0600
User-agent: Mutt/1.2.5i

Ebert, Rolf wrote:
> [...]
> You can try objcopy (part of binutils)
> 
> objcopy --input-target=binary --binary-architecture=i386
> --output-target=elf32-i386 <inputfile> <output.o>
> 
> You then have to submit the generated object file to the linker.

I dunno about the i386 stuff, but:

avr-objcopy --input-target=binary --output-target=elf32-avr <input> <output.o>

seems to work just like the ld.script stuff I messed with a few
days ago. The same start/end/size symbols are created, allowing
avr-libc pgmspace functions easy access to the data.

I like this method better, because it only requires a makefile rule,
not an extra ld.script file. Simple is good, right ?
-- 
address@hidden

Andy Warner             Voice: (612) 801-8549   Fax: (208) 575-5634


reply via email to

[Prev in Thread] Current Thread [Next in Thread]