[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] big string into the ROM
From: |
Keith Gudger |
Subject: |
Re: [avr-gcc-list] big string into the ROM |
Date: |
Tue, 11 Apr 2006 07:07:43 -0700 (PDT) |
If you've tried the -T linker option, as Ned suggested, and you still get
this problem, you may need to recompile your string file and put the
string information into a named section, which you will need to reference
in the linker script, too.
Did you create your linker script from the one used by default? You can
get it by typing "avr-ld --verbose > linker.script", and then you'll have
to edit the "linker.script" file to remove some junk from the -ld output.
Then add the suggestion below in the appropriate place, and include it by
modifying your makefile's linker flags to include -Tlinkder.script
Keith
On Tue, 11 Apr 2006, drvdrv wrote:
> > 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
>
>
>
- [avr-gcc-list] big string into the ROM, drvdrv, 2006/04/10
- Re: [avr-gcc-list] big string into the ROM, Daniel O'Connor, 2006/04/10
- Re: [avr-gcc-list] big string into the ROM, drvdrv, 2006/04/10
- Re: [avr-gcc-list] big string into the ROM, Keith Gudger, 2006/04/10
- Re: [avr-gcc-list] big string into the ROM, drvdrv, 2006/04/11
- Re: [avr-gcc-list] big string into the ROM, Ned Konz, 2006/04/11
- Re: [avr-gcc-list] big string into the ROM,
Keith Gudger <=
- Re: [avr-gcc-list] big string into the ROM, drvdrv, 2006/04/13
- Re: [avr-gcc-list] big string into the ROM, Joerg Wunsch, 2006/04/13