beautypg.com

Unresolved is fatal – Zilog Z8F0130 User Manual

Page 382

background image

Using the Linker/Locator

UM013037-1212

358

Zilog Developer Studio II – Z8 Encore!
User Manual

in reducing the overall memory requirements of the project. However, problems can arise
if a noncontiguous segment is copied from one space to another using the

COPY

command.

The linker issues a warning if it is asked to

COPY

any noncontiguous segment.

If

SPLITTABLE

is not specified for a given segment, the linker allocates the entire seg-

ment contiguously.

The SPLITTABLE command takes precedence over the ORDER and SEQUENCE com-
mands.

By default, ZDS II segments are nonsplittable. When multiple segments are made splitta-
ble, the linker might reorder segments regardless of what is specified in the ORDER (or
SEQUENCE) command. In this case, you must perform one of following actions:

Modify the memory map of the system so there is only one discontinuity and only one
splittable segment in which case the ORDER command is followed.

Modify the project so a specific ordering of segments is not needed, in which case
multiple segments can be marked splittable.

Syntax

SPLITTABLE

segment_list

Example

SPLITTABLE CODE, ROM_TEXT

UNRESOLVED IS FATAL

The

UNRESOLVED IS FATAL

command causes the linker to treat undefined external sym-

bol warnings as fatal errors. The linker quits generating output files immediately if the
linker cannot resolve any undefined symbol. By default, the linker proceeds with generat-
ing output files if there are any undefined symbols.

Syntax

[-] < UNRESOLVED > < IS | = >

Examples

-unresolved=fatal

or

UNRESOLVED IS FATAL