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

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

Re: [avr-gcc-list] Invalid bfd target


From: patrick blanchard
Subject: Re: [avr-gcc-list] Invalid bfd target
Date: Sun, 16 Oct 2005 09:45:48 -0500
User-agent: KMail/1.7.2

On Sunday 16 October 2005 09:30, patrick blanchard wrote:
> On Sunday 16 October 2005 08:38, patrick blanchard wrote:
> > Hi, what is a bfd target and why the error for this makefile?
> >
> > makefile
> >
> > ...snip
> > ###### BLOCK 9) create bin (.hex and .eep) files from elf output file
> > ######
> >
> > %.hex: %.elf
> >     $(BIN) -O $(FORMAT) -R .eeprom $< $@
> >
> > %.eep: %.elf
> >     $(BIN) -j .eeprom --set-section-flags=.eeprom="alloc,load"
> > --change-section-lma .eeprom=0 -O $(FORMAT) $< $@
> >
> > %.cof: %.elf
> >     $(BIN) --debugging -O coff-ext-avr \
> >             --change-section-address   .data-0x800000 \
> >             --change-section-address    .bss-0x800000 \
> >             --change-section-address .noinit-0x800000 \
> >             --change-section-address .eeprom-0x810000 \
> >             $< $@
> >
> > ...snip
> >
> > terminal output:
> > ...snip (error line is isolated w/ blank line)
> >
> > /home/patrick/linuxtooling/bin/avr-gcc-3.4.4  buffer.o uart2.o rprintf.o
> > timer.o a2d.o lcd.o lcdtest.o   -Wl,-Map=lcdtest.map,--cref
> > -mmcu=atmega128 -o lcdtest.elf
> > /home/patrick/linuxtooling/bin/avr-objcopy --debugging -O coff-ext-avr \
> >         --change-section-address   .data-0x800000 \
> >         --change-section-address    .bss-0x800000 \
> >         --change-section-address .noinit-0x800000 \
> >         --change-section-address .eeprom-0x810000 \
> >         lcdtest.elf lcdtest.cof
> >
> >
> > /home/patrick/linuxtooling/bin/avr-objcopy: lcdtest.cof: Invalid bfd
> > target
> >
> >
> > /home/patrick/linuxtooling/bin/avr-objcopy:
> > --change-section-vma .eeprom+0xff7f0000 never used
> > ...snip
> >
> >
> > thanks
>
> I suspect it has something to do w/ some incompatiblity issue in GNU BFD
> library?
>
> ..from $ man avr-objcopy
> objcopy uses the GNU BFD Library to read and write the object
>        files.   It can write the destination object file in a format
> different from that of the source object file.

... it appears that binutils 2.16 is lacking the corresponding coff-avr.c 
file?

address@hidden:~/linuxtooling/foundry/binutils-2.16/bfd$ ls coff*
coff64-rs6000.c coffcode.h coff-i860.c coff-maxq.c coff-rs6000.c  coff-tic30.c 
coff-we32k.c coff-a29k.c coffgen.c coff-i960.c coff-mcore.c coff-sh.c 
coff-tic4x.c coff-z8k.c coff-alpha.c coff-go32.c coff-ia64.c coff-mips.c 
coff-sparc.c coff-tic54x.c coff-apollo.c coff-h8300.c cofflink.c coff-or32.c 
coff-stgo32.c coff-tic80.c coff-arm.c coff-h8500.c coff-m68k.c coff-pmac.c 
coff-svm68k.c coff-u68k.c coff-aux.c coff-i386.c coff-m88k.c coff-ppc.c 
coffswap.h coff-w65.c


-- 
Patrick Blanchard




reply via email to

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