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

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

Re: [avr-gcc-list] new binutils-avr and libc-avr usage problems on linux


From: Andreas Krause
Subject: Re: [avr-gcc-list] new binutils-avr and libc-avr usage problems on linux.
Date: Mon, 29 Sep 2003 16:03:31 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624



Cota Tkachyeff wrote:

Artur Lipowski пишет:

After upgrade this packages to versions binutils-avr_2.13.90.0.18, avr-libc_20030512 I can't compile and link any project without errors.


...
It is not upgrade it is preparing for research of historical tools 8-)
Use the latest releases of mentioned tools (gcc 3.3.1 binutils 2.14 avr-libc 1.0) please.

What kind of errors you got?

with both binutils-avr_2.13.90.0.18 and avr-libc_20030512 installed:
---------

avr-gcc -g -mmcu=at90s8515 -Wall -Wstrict-prototypes -Os -mcall-prologues -Wa,-ahlms=test-led7.o -o test-led7.out -Wl,-Map,test-led7.map \
test-led7.o
/usr/lib/gcc-lib/avr/3.2/../../../../avr/bin/ld: skipping incompatible /usr/lib/gcc-lib/avr/3.2/libgcc.a when searching for -lgcc
/usr/lib/gcc-lib/avr/3.2/../../../../avr/bin/ld: cannot find -lgcc

---------

when I downgrade binutils-avr to version 2.12.90.0.7:
---------

avr-gcc -g -mmcu=at90s8515 -Wall -Wstrict-prototypes -Os -mcall-prologues -Wa,-ahlms=test-led7.o -o test-led7.out -Wl,-Map,test-led7.map \
test-led7.o
/usr/lib/gcc-lib/avr/3.2/../../../../avr/bin/ld: section .vectors [00000142 -> 0000015b] overlaps section .data [00000142 -> 0000015f] /usr/lib/gcc-lib/avr/3.2/../../../../avr/bin/ld: section .init2 [0000015c -> 00000167] overlaps section .data [00000142 -> 0000015f]

---------

Tnx.

Hi, for your second problem there is a little workaround: the linker uses the 'avr85xx.x'- linkerscript. This did not work for me either. Copy the 'avr2.x'-likerscript to your project-directory and change it to fit your needs (sram size etc., without xternal ram, it should work without changes !).

Call the linker with 'Wl,--script,$(PROJECTDIR)avr2.x,-Map,$(TARGET).map'.
This works for me.
No more overlapping sections.
I use gcc 3.3.1, binutils 2.14 and avr-libc 1.0 .

greetings !!!

Andreas Krause


















reply via email to

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