Linkage; Default Linker Script - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

9.4 linkage

9.4.1 Default linker Script

Default linker script when the -T option is not specified
When the -T option is not specified, the ld linker uses the default script shown below for linkage.
OUTPUT_FORMAT("elf32-c17", "elf32-c17", "elf32-c17")
OUTPUT_ARCH(c17)
SEARCH_DIR(.);
SECTIONS
{
/* section information */
.bss 0x0 :
{
__START_bss = . ;
*(.bss)
__END_bss = . ;
}
.data __END_bss : AT( __END_rodata )
{
__START_data = . ;
*(.data)
__END_data = . ;
}
.text 0x8000 :
{
__START_vector = . ;
*(.vector)
__END_vector = . ;
. = 0x80 ;
__START_text = . ;
*(.text)
__END_text = . ;
}
.rodata __END_text :
{
__START_rodata = . ;
*(.rodata)
__END_rodata = . ;
}
/* load address symbols */
__START_data_lma = LOADADDR( .data );
}
In this script, data will be located from address 0 in order of .bss and .data sections, the vector table,
program codes and constant data will be located from address 0x8000.
Figure 9.4.1.1 shows the memory map after linkage.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
.data (initial values)
.rodata
.text
0x8080
.vector
0x8000
Unused
.data
.bss
0x0
Figure 9.4.1.1 Memory map configured by default script
EPSOn
LMA
VMA=LMA
VMA=LMA
VMA=LMA
VMA
VMA=LMA
9 linkEr
9
Linker
9-3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S5U1C17001C and is the answer not in the manual?

Questions and answers

Table of Contents