Functions; Input/Output Files; Input Files - 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 Linker
This chapter describes the functions of the ld linker.

9.1 functions

The ld linker is a software that generates executable object files. It provides the following functions:
• Links together multiple object modules including libraries to create one executable object file.
• Resolves external reference from one module to another.
• Relocates relative addresses to absolute addresses.
• Delivers debugging information, such as line numbers and symbol information, in the object file created after
linking.
• Capable of outputting link map files.
This linker is based on the gnu linker (ld). For details about the ld linker, refer to the documents for the gnu linker.
The documents can be acquired from the GNU mirror sites located in various places around the world through
Internet, etc.

9.2 input/Output files

file.lds
Linker script file
file.map
Link map file

9.2.1 input files

Object file
File format: Binary file in elf format
File name:
<filename>.o
Description: Object file of individual modules created by the as assembler.
library file
File format: Binary file in library format
File name:
<filename>.a
Description: ANSI library files, emulation library files and user library files.
linker script file
File format: Text file
File name:
<filename>.lds
Description: File to specify the start address of each section and other information for linkage.
The IDE may be used to create a linker script file.
It is input to the ld linker when the -T option is specified.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
as assembler
file.o
Object files
Linker
ld
Executable
file.elf
object file
gdb debugger
Figure 9.2.1 Flowchart
EPSOn
ANSI library
Emulation library
Simulated I/O library
User
Library
libc.a
libgcc.a (libgccM.a/libgccMD.a)
file.a
libstdio.a
Library files
9 linkEr
9
Linker
9-1

Advertisement

Table of Contents
loading

Table of Contents