[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps sect
From: |
Sander Pool |
Subject: |
Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ... |
Date: |
Thu, 1 Aug 2002 16:45:26 -0700 |
Jan,
I just tried this with the previous avrfreaks win32 release, 3.0.2 and it
works fine. Since you are using the 8515, why not use that version of
avrgcc? I used the gcctest1 sample and stuck your code in there. Output from
compiler:
C:\avrgcc\gcctest\gcctest1>make
avr-gcc -c -g -Os -Wall -Wstrict-prototypes -Wa,-ahlms=gcctest1.lst -mmcu=a
t90s
8515 -I. gcctest1.c -o gcctest1.o
avr-gcc gcctest1.o -Wl,-Map=gcctest1.map,--cref -mmcu=at90s8515 -o
gcctest1.e
lf
avr-objcopy -O avrobj -R .eeprom gcctest1.elf gcctest1.obj
avr-objcopy -O ihex -R .eeprom gcctest1.elf gcctest1.hex
elfcoff gcctest1.elf coff gcctest1.cof gcctest1.sym
Ended
cp coff\gcctest1.cof .
cp coff\\*sym .
cp coff\\*S .
avr-objcopy -j
.eeprom --set-section-flags=.eeprom="alloc,load" --change-section
-lma .eeprom=0 -O ihex gcctest1.elf gcctest1.eep
avr-size gcctest1.elf
text data bss dec hex filename
98 2 0 100 64 gcctest1.elf
Errors: none
I haven't tried with 3.2 yet.
Sander
PS in your case it compliles fine but it doesn't link very well :-)
----- Original Message -----
From: "Jan Kneschke" <address@hidden>
To: <address@hidden>
Sent: Thursday, August 01, 2002 2:31 PM
Subject: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps
section .data ...
>
> The following program doesn't compile:
>
> char a[] = "";
>
> int main(void) {
> for(;;);
> }
>
>
> output is:
>
> $
../bin/avr-gcc -c -Os -Wall -g -mmcu=at90s8515 -I/usr/local/avr/include -o
demo.o demo.c
> $ ../bin/avr-gcc -Os -Wall -g -mmcu=at90s8515 -I/usr/local/avr/include -o
demo demo.o
> ../bin/../lib/gcc-lib/avr/3.2/../../../../avr/bin/ld: section .vectors
[0000000e -> 00000027] overlaps section .data [0000000e -> 0000000f]
> make: *** [demo] Fehler 1
>
> $ ../bin/avr-ld --version
> GNU ld version 020731 20020731
>
> $ ../bin/avr-gcc --version
> avr-gcc (GCC) 3.2 20020729 (prerelease)
>
> Is there a way to get that working ? The 8515 has 256 bytes of RAM and
> it would be nice if I could use it with avr-gcc.
>
> Jan
>
> --
> http://jan.kneschke.de weigon @ #modlogan - irc.openprojects.net
> mailto:address@hidden weigon @ #php.de - irc.fu-berlin.de
>
> avr-gcc-list at http://avr1.org
>
avr-gcc-list at http://avr1.org
- [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Jan Kneschke, 2002/08/05
- Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ...,
Sander Pool <=
- Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Joerg Wunsch, 2002/08/05
- Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Jan Kneschke, 2002/08/05
- Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Janne Matti Heikkinen, 2002/08/31
- Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Joerg Wunsch, 2002/08/31
- Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Janne Heikkinen, 2002/08/31
- Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Joerg Wunsch, 2002/08/31
Re: [avr-gcc-list] section .vectors [0000000e -> 00000027] overlaps section .data ..., Janne Matti Heikkinen, 2002/08/31