---------- Forwarded message ----------
List,

* Can somebody explain to me what is the .bss section, and the .noinit
section?
("man elf" doesn't help me, in fact the man doesn't mention the .noinit
section)


* The .data section, is some kind of image of the variables involved in the
program?
In that case, at startup it'll be loaded in ram, in that case, how?


* About the output below, as you can see I'm trying to link a program, but
the link errors really confuse me, in fact i don't understand the messages.
Because, if i have 48 KB available in ROM and 10 KB in RAM, how and why the
.bss is not within region data, the same for the .noinit.
In the list archives, I saw questions about this, but no one helped me.


ADMRED-25459# make
> msp430-gcc -O3 -O -c -DSTAND_ALONE_INTERP -mmcu=msp430x1612 driver.c
> msp430-gcc -O3 -O -c -DSTAND_ALONE_INTERP -mmcu=msp430x1612
> canon_stand_alone.c
> msp430-gcc -O3 -O -c -DSTAND_ALONE_INTERP -mmcu=msp430x1612 file.c
> msp430-gcc -O3 -O -c -DSTAND_ALONE_INTERP -mmcu=msp430x1612 rs274ngc.c
> msp430-gcc -O3 -O -c -DSTAND_ALONE_INTERP -mmcu=msp430x1612 math.c
> msp430-gcc -lm -m msp430x1612 -O3 -O driver.o canon_stand_alone.o
> rs274ngc.o file.o math.o -o rs274ngc.interpreter
> msp430-ld: address 0x7e3c of rs274ngc.interpreter section .bss is not
> within region data
> msp430-ld: address 0x7e3c of rs274ngc.interpreter section .noinit is not
> within region data
> msp430-ld: section .bss [00001f92 -> 00007e3b] overlaps section .text
> [00002500-> 0000bf65]
> C:\axs\unixutils\gnu-tools\usr\local\wbin\make.EXE: *** [
> rs274ngc.interpreter] Error 1
> ADMRED-25459# msp430-size *.o
>    text    data     bss     dec     hex filename
>     626       6      12     644     284 canon_stand_alone.o
>    4366       0       0    4366    110e driver.o
>      54       6       0      60      3c file.o
>      90       0       0      90      5a math.o
>   28990    3716      50   32756    7ff4 rs274ngc.o
> ADMRED-25459#
>

As you can see, the questions are more for a gcc list, sorry for bother.

Reply via email to