diff options
author | dfr <dfr@FreeBSD.org> | 1997-05-29 15:34:34 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1997-05-29 15:34:34 +0000 |
commit | fb90c2a22294646f1f73fdc3f1bdf48ce5344522 (patch) | |
tree | 273ab0701b7d569e7f3a9789f2acc3bc68c01396 /gnu/usr.bin | |
parent | f3560ca96b35b91d4431f982399ab55963fa3ad1 (diff) | |
download | FreeBSD-src-fb90c2a22294646f1f73fdc3f1bdf48ce5344522.zip FreeBSD-src-fb90c2a22294646f1f73fdc3f1bdf48ce5344522.tar.gz |
Document new -Bforcedynamic flag and -assert pure-text.
Reviewed by: jdp
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/ld/ld.1 | 21 | ||||
-rw-r--r-- | gnu/usr.bin/ld/ld.1aout | 21 |
2 files changed, 36 insertions, 6 deletions
diff --git a/gnu/usr.bin/ld/ld.1 b/gnu/usr.bin/ld/ld.1 index 837778c..4624745 100644 --- a/gnu/usr.bin/ld/ld.1 +++ b/gnu/usr.bin/ld/ld.1 @@ -27,7 +27,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id: ld.1,v 1.15 1997/02/22 15:46:19 peter Exp $ +.\" $Id: ld.1,v 1.16 1997/03/22 02:59:38 jdp Exp $ .\" .Dd October 14, 1993 .Dt LD 1 @@ -73,10 +73,18 @@ The options are as follows: The the symbol-file is taken as a base for link-editing the object files on the command line. .It Fl assert Ar keyword -This option has currently no effect. It is here for compatibility with -SunOS ld. All conditions which would cause a Sun assertion to fail will +This option is here mainly for compatibility with SunOS +.Nm ld . +Most conditions which would cause a Sun assertion to fail will currently always cause error or warning messages from .Nm ld . +The only keyword implemented by +.Nm ld +is +.Nm pure-text , +which generates a warning if a position independent object is being +created and some of the files being linked are not position +independent. .It Fl B Ns Ar dynamic Specifies that linking against dynamic libraries can take place. If a library specifier of the form -lx appears on the command line, @@ -91,6 +99,13 @@ found a traditional archive is looked for. This options can appear anywhere on the command line and is complementary to .Fl B Ns Ar static. +.It Fl B Ns Ar forcedynamic +This is similar to +.Fl B Ns Ar dynamic +except that if no dynamic libraries are linked against, +.Nm ld +will still produce a dynamic executable. This is useful for programs +which are static but still need to load dynamic objects at runtime. .It Fl B Ns Ar static The counterpart of .Fl B Ns Ar dynamic . diff --git a/gnu/usr.bin/ld/ld.1aout b/gnu/usr.bin/ld/ld.1aout index 837778c..4624745 100644 --- a/gnu/usr.bin/ld/ld.1aout +++ b/gnu/usr.bin/ld/ld.1aout @@ -27,7 +27,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id: ld.1,v 1.15 1997/02/22 15:46:19 peter Exp $ +.\" $Id: ld.1,v 1.16 1997/03/22 02:59:38 jdp Exp $ .\" .Dd October 14, 1993 .Dt LD 1 @@ -73,10 +73,18 @@ The options are as follows: The the symbol-file is taken as a base for link-editing the object files on the command line. .It Fl assert Ar keyword -This option has currently no effect. It is here for compatibility with -SunOS ld. All conditions which would cause a Sun assertion to fail will +This option is here mainly for compatibility with SunOS +.Nm ld . +Most conditions which would cause a Sun assertion to fail will currently always cause error or warning messages from .Nm ld . +The only keyword implemented by +.Nm ld +is +.Nm pure-text , +which generates a warning if a position independent object is being +created and some of the files being linked are not position +independent. .It Fl B Ns Ar dynamic Specifies that linking against dynamic libraries can take place. If a library specifier of the form -lx appears on the command line, @@ -91,6 +99,13 @@ found a traditional archive is looked for. This options can appear anywhere on the command line and is complementary to .Fl B Ns Ar static. +.It Fl B Ns Ar forcedynamic +This is similar to +.Fl B Ns Ar dynamic +except that if no dynamic libraries are linked against, +.Nm ld +will still produce a dynamic executable. This is useful for programs +which are static but still need to load dynamic objects at runtime. .It Fl B Ns Ar static The counterpart of .Fl B Ns Ar dynamic . |