[Top][All Lists]

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

[avr-gcc-list] problems with linker

From: Steve Joiner
Subject: [avr-gcc-list] problems with linker
Date: Tue, 24 Sep 2002 13:48:36 -0700 (PDT)


I'm trying to get my avr build environment working.  I've got the
latest snapshots of binutils and gcc (binutils-020924 and
gcc-20020923).  I also grabbed avr-libc from CVS today (9/24).  I
followed the instructions at


and was able to build and install everything without any problems. 
I've got a simple program, foo.c that I'm trying to compile for the
at90s4433.  I issue the following command:

avr-gcc -g -mmcu=at90s4433 -Wl,-Map,foo.map foo.c

It builds successfully, but the start of the map file looks like this:

Archive member included because of file (symbol)

                              /tmp/ccgWgtvZ.o (__do_copy_data)
                              /tmp/ccgWgtvZ.o (__do_clear_bss)

Memory Configuration

Name             Origin             Length             Attributes
text             0x00000000         0x00002000         xr
data             0x00800060         0x0000ffa0         rw !x
eeprom           0x00810000         0x00010000         rw !x
*default*        0x00000000         0xffffffff

Linker script and memory map

LOAD /tmp/ccgWgtvZ.o
LOAD /usr/local/atmel/lib/gcc-lib/avr/3.3/libgcc.a
LOAD /usr/local/atmel/lib/gcc-lib/avr/3.3/../../../../avr/lib/libc.a
LOAD /usr/local/atmel/lib/gcc-lib/avr/3.3/libgcc.a

This seems wrong to me because it is reporting the length of the text
section as 0x2000 and the length of the data section as 0xffa0. 
According to the data sheet, they should be 0x800 and 0xf0,
respectively.  The eeprom length looks wrong too.

Can anyone tell me what I'm doing wrong here?


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
avr-gcc-list at http://avr1.org

reply via email to

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