CHAPTER 5: LINKER

CHAPTER 5 LINKER

This chapter describes the functions of the linker, lk63.

5.1 Functions

The linker lk63 is a software that generates executable object files. It provides the following functions:

Puts together multiple object modules 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 a link map file, symbol file, absolute list file and a cross reference file.

Automatic page correction function (insertion/removal/correction of the "ldb %ext, imm8" branch extension instruction) for branch instructions.

5.2 Input/Output Files

 

 

from Assembler

 

 

 

Linker

Relocatable

ICE

 

 

 

command file

object file(s)

parameter file

 

 

 

file.cm

file.o

file.par

 

 

 

 

 

 

 

 

Linker

 

 

 

 

 

lk63

 

 

 

file.map

file.sym

file.abs

file.xrf

file.als

lk63.err

Link

Symbol

Absolute

Cross

Absolute

Error file

map file

file

object file

reference file

list file

 

to Debugger

Fig. 5.2.1 Flow chart

5.2.1 Input Files

Relocatable object file This file must always be specified in either a command line or a link command file.

File format: Binary file in IEEE-695 formatFile name: <File name>.o (A path can also be specified.)Description: Object file of individual modules created by the assembler.Linker command file

File format: Text file

File name: <File name>.cm (A path can also be specified.)

Description: File to specify the linker options. This makes it possible to reduce typing in a command line. This file is dispensable if all start-up options can be input in a command line.

ICE parameter file This file must always be specified in either a command line or a link command file.

File format: Binary fileFile name: <File name>.par (A path can also be specified.)

Description: File to specify the memory mapping and unsupported instruction information of each S1C63 Family model. This file is provided for each model and commonly used with the debugger and HEX converter.

S5U1C63000A MANUAL

EPSON

89

(S1C63 FAMILY ASSEMBLER PACKAGE)