projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new copyright notice
[unix-history]
/
usr
/
src
/
old
/
ld
/
ld.1
diff --git
a/usr/src/old/ld/ld.1
b/usr/src/old/ld/ld.1
index
8754d3c
..
09ee5ea
100644
(file)
--- a/
usr/src/old/ld/ld.1
+++ b/
usr/src/old/ld/ld.1
@@
-2,9
+2,9
@@
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)ld.1
4.1
(Berkeley) %G%
+.\" @(#)ld.1
6.2
(Berkeley) %G%
.\"
.\"
-.TH LD 1
VAX-11
+.TH LD 1
""
.UC 4
.SH NAME
ld \- link editor
.UC 4
.SH NAME
ld \- link editor
@@
-106,18
+106,28
@@
flag is present.
The following argument is taken to be the
name of the entry point of the loaded
program; location 0 is the default.
The following argument is taken to be the
name of the entry point of the loaded
program; location 0 is the default.
+.TP
+.BI \-L dir
+Add
+.I dir
+to the list of directories in which libraries are searched for.
+Directories specified with
+.B \-L
+are searched before the standard directories.
.TP
.BI \-l x
This
option is an abbreviation for the library name
.TP
.BI \-l x
This
option is an abbreviation for the library name
-.RI `
/lib/
lib x .a',
+.RI `lib x .a',
where
.I x
is a string.
where
.I x
is a string.
-If that does not exist,
-.I ld
-tries
-.RI `/usr/lib/lib x .a'
+.I Ld
+searches for libraries first in any directories
+specified with
+.B \-L
+options, then in the standard directories `/lib', `/usr/lib', and
+`/usr/local/lib'.
A library is searched when its name is encountered,
so the placement of a
.B \-l
A library is searched when its name is encountered,
so the placement of a
.B \-l
@@
-216,7
+226,7
@@
a text and data segment each of which have size a multiple of 1024 bytes
(being padded out with nulls in the file if necessary).
With this format the first few BSS segment symbols may actually appear
(from the output of
(being padded out with nulls in the file if necessary).
With this format the first few BSS segment symbols may actually appear
(from the output of
-.IR size (
2
))
+.IR size (
1
))
to live in the data segment;
this to avoid wasting the space resulting from data segment size roundup.
.SH FILES
to live in the data segment;
this to avoid wasting the space resulting from data segment size roundup.
.SH FILES
@@
-232,3
+242,7
@@
a.out output file
as(1), ar(1), cc(1), ranlib(1)
.SH BUGS
There is no way to force data to be page aligned.
as(1), ar(1), cc(1), ranlib(1)
.SH BUGS
There is no way to force data to be page aligned.
+.I Ld
+pads images which are to be demand loaded from
+the file system to the next
+page boundary to avoid a bug in the system.