Setting Linker Options - 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

3 GNU17 IDE
3.4.5

Setting Linker Options

Set the linker command options as follows:
Select C/C++ Build > Settings > [Tool Settings] > [Cross GCC Linker] from the [Properties] dialog box and set the linker command
options. For detailed information on options, refer to Chapter 7, "Linker."
 General
Set default library usage from this page.
[Do not use standard start files] (default: Not selected)
crt0.o is not linked if this item is selected.
Select for specific startup processing—for example, if a GNU17 Version2 project has been imported or when describing a
program using an assembler only.
[Do not use default libraries] (default: Not selected)
Default libraries are not linked if this item is selected.
For GCC4, libc.a, libgcc.a, and libg.a will be the default libraries. Select this item if you do not wish to link to these libraries.
For GCC3, there are no default libraries.
 Libraries
Set the libraries to be linked and library search paths from this page.
If using your own library, this should be set to the environment variable GCC17_USER_LIBS.
[Libraries]
Specify the library to be linked. Register the xxx part of libxxx.a.
For GCC3, set as follows:
Library specified
libc.a
libgccMD2.a
libstdio.a
Setting is not required for GCC4, as these libraries are specified beforehand as default linker libraries.
[Library serach path]
Specify the path for searching libraries.
The following path is set by default:
${GCC17_LIB}
This indicates the location of the emulation library and ANSI library.
 Miscellaneous
Specify other linker options from this page.
[Linker flags] (default: -gstabs –B${GCC17_LOC} –mrelax)
Linker flags can be added.
[Other options]
Specify other linker options.
The MAP file generation option is set by default.
-Map=${ProjName}.map
To specify your own linker script, specify the linker script file using the -T option.
If this is not set, linking will use the default linker script.
Example: To specify the linker script file elf32c17.x on the project folder
-T ../elf32c17.x
3-12
Value set for [Libraries]
c
gcc${GCC17_COPRO}
stdio
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?

Table of Contents