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:30:54 -0500
User-agent: KMail/1.7.2

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.

-- 
Patrick Blanchard




reply via email to

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