C:/EPSON/gnu17/lib/24bit/libstdio.a(.text)
C:/EPSON/gnu17/lib/24bit/libc.a(.text)
C:/EPSON/gnu17/lib/24bit/libgcc.a(.text)
C:/EPSON/gnu17/lib/24bit/libc.a(.text)
}
__END_text = . ;
.rodata __END_text :
{
__START_rodata = . ;
func1.o(.rodata)
func2.o(.rodata)
main.o(.rodata)
C:/EPSON/gnu17/lib/24bit/libstdio.a(.rodata)
C:/EPSON/gnu17/lib/24bit/libc.a(.rodata)
C:/EPSON/gnu17/lib/24bit/libgcc.a(.rodata)
C:/EPSON/gnu17/lib/24bit/libc.a(.rodata)
}
__END_rodata = . ;
/* load address symbols */
__START_data_lma = LOADADDR( .data );
__END_data_lma = __START_data_lma + SIZEOF( .data );
__START_textu1_lma = LOADADDR( .textu1 );
__END_textu1_lma = __START_textu1_lma + SIZEOF( .textu1 );
__START_textu2_lma = LOADADDR( .textu2 );
__END_textu2_lma = __START_textu2_lma + SIZEOF( .textu2 );
}
Shown below are the section locations and file configurations.
func2.o – .text
(__START_textu2_lma)
func1.o – .text
(__START_textu1_lma)
func2.o – .data
func1.o – .data
main.o – .data
boot.o – .data
(__START_data_lma)
library – .rodata
func2.o – .rodata
func1.o – .rodata
main.o – .rodata
(__START_rodata)
library – .text
main.o – .text
boot.o – .text
(__START_text)
boot.o – .rodata
0x008000
0x000000
The routine for transferring the program from ROM to RAM should be created within main.c.
note: Locating the .textu1 and .textu2 sections preceding a .rodata section with (for example)
no LMA specified will result in positioning the .rodata section behind the end VMA address of
the .textu2 section. Do not locate any VMA-only sections behind LMA ≠ VMA sections.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
LMA
.textu2
section
.textu1
section
.data
section
.rodata
section
.text
section
.vector
section
No sections/files
located here
Figure 5.7.6.9 Example of s section location 4
EPSOn
VMA
.textu1 section
func1.o – .text
(__START_textu1)
func2.o – .data
func1.o – .data
main.o – .datamain.o –
.datamain.o – .data
boot.o – .data
(__START_data)
library – .bss
func2.o – .bss
func1.o – .bss
main.o – .bss
boot.o – .bss
0x000000
5 gnU17 iDE
5
IDE
.textu2 section
func2.o – .text
.data
section
.bss
section
5-153
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?
Questions and answers