Copy – Zilog EZ80F916 User Manual
Page 269

UM014423-0607
Using the Linker/Locator
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
249
Syntax
CHANGE
=
<name> can be a group, address space, or segment.
<newname> is the new name to be used in renaming a group, address space, or segment;
the name of the group where an address space is to be moved; or the name of the address
space where a segment is to be moved.
Examples
NOTE: See also the examples for the
COPY
command (“COPY” on page 249).
To change the name of a segment (for example,
strseg
) to another segment name (for
example,
codeseg
), use the following command:
CHANGE strseg=codeseg
To move a segment (for example,
codeseg
) to a different address space (for example,
RAM), use the following command:
CHANGE codeseg=RAM
To not allocate a segment (for example,
dataseg
), use the following command:
CHANGE dataseg=NULL
NOTE: The linker recognizes the special space
NULL
.
NULL
is not one of the spaces that an object
file or library contains in it. If a segment is copied to
NULL
as a command to the linker, the
segment is deleted from the linking process. This can be useful if you need to link only part
of an executable or not write out a particular part of the executable. The predefined space
NULL
can also be used to prevent initialization of data while reserving the segment in the
original space.
COPY
The
COPY
command is used to make a copy of a segment into a specified address space.
This is most often used to make a copy of initialized RAM in ROM so that it can be initial-
ized at run time.
Syntax
COPY
<segment> can only be a segment.
<name> can only be an address space.