has additional features on some platforms; the following sections describe them. Machines where
ld
has no additional functionality are not listed.
ld
5.1.
and the H8/300
ld
For the H8/300,
ld
line option.
relaxing address modes
finds all
ld
jsr
eight-bit program-counter relative
synthesizing instructions
finds all
ld
mov.b
top page of memory, and changes them to use the eight-bit address form. (That is: the linker turns
mov.b
:16
@aa
5.2.
and the Intel 960 Family
ld
You can use the
-A
architecture
tifying members of the 960 family; the option specifies the desired output target, and warns of any
incompatible instructions in the input files. It also modifies the linker's search strategy for archive
libraries, to support the use of libraries specific to each particular architecture, by including in the
search loop names suffixed with the string identifying the architecture.
For example, if your
built-in search paths, and in any paths you specify with
try
libtry.a
tryca
libtryca.a
The first two possibilities would be considered in any event; the last two are due to the use of
You can meaningfully use
allows combination of target architectures; each use will add another pair of name variants to search
for when
specifies a library.
-l
supports the
ld
-relax
instructions whose targets are within 24 bits, and turns them into 24-bit program-counter relative
calx
and
instructions, respectively.
bal
cal
determines that the target subroutine is a leaf routine (that is, the target subroutine does not itself call
any subroutines).
can perform these global optimizations when you specify the
and
instructions whose targets are within eight bits, and turns them into
jmp
bsr
instructions which use the sixteen-bit absolute address form, but refer to the
into
mov.b
:8
@aa
command line option to specify one of the two-letter names iden-
command line included
ld
more than once on a command line, since the 960 architecture family
-A
option for the i960 family. If you specify
Machine Dependent Features
and
instructions, respectively.
bra
whenever the address
as well as
-ACA
) for a library with the names
-L
also turns
instructions into
ld
cal
Chapter 5.
-relax
is in the top page of memory).
aa
, the linker would look (in its
-ltry
,
finds all
-relax
ld
instructions when it
bal
command-
.
-ACA
and
balx
Need help?
Do you have a question about the ENTERPRISE LINUX 4 - USING ID and is the answer not in the manual?
Questions and answers