summaryrefslogtreecommitdiff
path: root/devel/bcc/files/ld86.1
blob: 914be158c8e7bdde3bec9046471ae71d870f727f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
.\"
.\" This manual page has been assembled after Bruce's original bcc.doc
.\" file by J�rg Wunsch <joerg@FreeBSD.org>.
.\" It is redistributed under the same conditions as the whole bcc
.\" package itself.
.\"
.Dd March 26, 1995
.Os
.Dt LD86 1
.Sh NAME
.Nm ld86
.Nd loader for as86
.Sh SYNOPSIS
.Nm ld86
.Op Fl 03Mimrstz Ns Op -
.Op Fl l Ns Ar lib_extension
.Op Fl o outfile
.Op Fl C crtfile
.Op Fl L Ns libdir
.Op Fl O Ns libfile
.Op Fl T textaddr
.Ar infile
.Op Ar ...
.Sh DESCRIPTION

.Ss Overview

.Nm Ld86
is the loader that understands how to link the output of
.Xr as86 1
together.

.Ss Options

.Bl -tag -width indent -compact

.It Fl 0
.Pq the digit 0
produce header with 16-bit magic and use library subdir
.Pa i86
for
.Fl l Ns Ar x

.It Fl 3
produce header with 32-bit magic and use library subdir
.Pa i386
for
.Fl l Ns Ar x

.It Fl C Ns Ar x
add file
.Pa libdir-from-search/crt Ns Ar x Ns \&.o
to list of files linked

.It Fl L Ns Ar x
add dir name
.Ar x
to the head of the list of library dirs searched

.It Fl M
print symbols linked on stdout

.It Fl O Ns Ar x
add library
.Pa libdir-from-search/ Ns Ar x
to list of files linked

.It Fl T
text base address follows
.Pq in format suitable for strtoul

.It Fl i
separate I&D output

.It Fl l Ns Ar x
add library
.Pa libdir-from-search/lib Ns Ar x Ns \&.a
to list of files linked

.It Fl m
print modules linked on stdout

.It Fl o
output file name follows

.It Fl r
produce output suitable for further relocation

.It Fl s
strip symbols

.It Fl t
trace modules being looked at on stdout

.It Fl z
produce
.Dq unmapped zero page
executables


.El

The 6809 version does not support -i or -r.

All the options not taking an argument may be turned off by following the
option letter by a
.Sq \&- ,
as for bcc-cc1.

.Ss Defaults

Off or none except for these:

.Bl -tag -width indent -compact

.It Fl 0 | Fl 3
native, i.\& e. 80386

.It Fl L Ns Pa /usr/local/lib/bcc/ Ns Ar m/
.Po
.Ar m
is machine dependent
.Pc

.It Ar outfile
.Pa a.out

.El

.Sh SEE ALSO

.Xr as86 1 ,
.Xr bcc 1 .

.Sh AUTHORS

This programm has been written by Bruce Evans.