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.

ld00090000.gif command language:input files

ld00090000.gif file formats

ld00090000.gif output file layout

ld00090000.gif addresses of sections

ld00090000.gif 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