Contents|Index|Previous|Next

Command Language

The command language provides explicit control over the link process, allowing complete specification of the mapping between the linker’s input files and its output. It controls the following features.

command language:input files

file formats

output file layout

addresses of sections

placement of common blocks

You may supply a command file (also known as a link script) to the linker either explicitly through the ‘-T’ option, or implicitly as an ordinary file. If the linker opens a file which it cannot recognize as a supported object or archive format, it reports an error.

See the following documentation for specific discussion detailing the linker.

Linker Scripts

Expressions

Integers

Symbol Names

The Location Counter

Operators

Evaluation

Assignment: Defining Symbols

Arithmetic Functions

Memory Layout

Specifying Output Sections

Section Definitions

Section Placement

Section Data Expressions

Optional Section Attributes

The Entry Point

Option Commands