Examples Of Linkage - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.1)
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

7 Linker
7.4.2

Examples of Linkage

When virtual and shared sections are used
The following is a sample linker script when virtual and shared sections are used:
OUTPUT_FORMAT("elf32-c17")
OUTPUT_ARCH(c17)
ENTRY(_start)
SEARCH_DIR(.);
MEMORY
{
iram
: ORIGIN = 0,
irom
: ORIGIN = 0x8000,
}
SECTIONS
{
.bss (NOLOAD) :
{
PROVIDE (__START_bss = .) ;
*(.bss)
*(.bss.*)
*(COMMON)
PROVIDE (__END_bss = .) ;
} > iram
.vector :
{
PROVIDE (__START_vector = .) ;
KEEP (*crt0.o(.rodata))
PROVIDE (__END_vector = .) ;
} > irom
.text :
{
PROVIDE (__START_text = .) ;
*(EXCLUDE_FILE (*foo1.o *foo2.o *foo3.o) .text.*)
*(EXCLUDE_FILE (*foo1.o *foo2.o *foo3.o) .text)
PROVIDE (__END_text = .) ;
} > irom
.data :
{
PROVIDE (__START_data = .) ;
*(.data)
*(.data.*)
PROVIDE (__END_data = .) ;
} > iram AT > irom
OVERLAY ".":
{
.text_foo1 { *foo1.o(.text.*) *foo1.o(.text) }
.text_foo2 { *foo2.o(.text.*) *foo2.o(.text) }
.text_foo3 { *foo3.o(.text.*) *foo3.o(.text) }
} > iram AT > irom
.rodata :
{
PROVIDE (__START_rodata = .) ;
*(EXCLUDE_FILE (*crt0.o ) .rodata)
*(.rodata.*)
7-6
LENGTH = 32K
LENGTH = 4064K
Seiko Epson Corporation
S5U1C17001C Manual
(Rev. 1.0)

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?

Subscribe to Our Youtube Channel

Table of Contents