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

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

Re: [avr-gcc-list] big string into the ROM


From: drvdrv
Subject: Re: [avr-gcc-list] big string into the ROM
Date: Tue, 11 Apr 2006 07:57:48 +0200 (CEST)

> Have you tried "info ld"?  Look at the part on linker 
scripts and "Input
> Sections".
> 
> "If you use a file name without a list of sections, then 
all sections
> in the input file will be included in the output section."
> 
> (Untested), this might work:
> 
> SECTIONS
> {
>   /* Read-only sections, merged into text segment: */
> ...
>   .text :
>   {
>     *(.vectors)
>      __ctors_start = . ;
> ...
>     *(.fini0)  /* Infinite loop after program termination. 
 */
>      mytext.o  /* <- Here is your file! */
>      _etext = . ;
>   }  > text
> 
> Keith

I tried it but it I got error:

Build started 10.4.2006 at 19:36:33
avr-gcc  -mmcu=atmega128 -Wall -gdwarf-2  -Os -fsigned-char -Wp,-M,-
MP,-MT,s6b1713.o,-MF,dep/s6b1713.o.d  -c  ../s6b1713.c
avr-gcc  -mmcu=atmega128 -Wall -gdwarf-2  -Os -fsigned-char -Wp,-M,-
MP,-MT,menu.o,-MF,dep/menu.o.d  -c  ../menu.c
avr-gcc  -mmcu=atmega128 -Wall -gdwarf-2  -Os -fsigned-char -Wp,-M,-
MP,-MT,pgmmem.o,-MF,dep/pgmmem.o.d  -c  ../pgmmem.c
avr-gcc  -mmcu=atmega128 -Wall -gdwarf-2  -Os -fsigned-char -Wp,-M,-
MP,-MT,main.o,-MF,dep/main.o.d  -c  ../main.c
avr-gcc linker.txt -mmcu=atmega128 text.o s6b1713.o menu.o pgmmem.
o main.o    -o abc.elf 
E:\WinAVR\bin\..\lib\gcc\avr\3.4.3\..\..\..\..\avr\bin\ld.exe:linker.txt:17: 
warning: redeclaration of memory region 'text'
E:\WinAVR\bin\..\lib\gcc\avr\3.4.3\..\..\..\..\avr\bin\ld.exe:linker.txt:18: 
warning: redeclaration of memory region 'data'
E:\WinAVR\bin\..\lib\gcc\avr\3.4.3\..\..\..\..\avr\bin\ld.exe:linker.txt:19: 
warning: redeclaration of memory region 'eeprom'
E:\WinAVR\bin\..\lib\gcc\avr\3.4.3\..\..\..\..\avr\bin\ld.exe: region text is 
full (abc.elf section .text)
make: *** [abc.elf] Error 1

I don't understand because the text.o is not so big to fill the whole ROM.


/drv

_______________________________________________________________________
3 könyv = 15+5% kedvezmény!
http://www.bookline.hu/control/news?newsid=351&affiliate=fre3kokar2230






reply via email to

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