summaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorChris Demetriou <cgd@broadcom.com>2001-11-02 01:13:09 +0000
committerChris Demetriou <cgd@broadcom.com>2001-11-02 01:13:09 +0000
commitb929045c930244cb76aca9da703b07009110d189 (patch)
treeac9be4e4b65e18cdc5aba5d623efabb996364c65 /ld/ld.texinfo
parent64acd2b9a7a606840b257da1c01a5f40b615d61f (diff)
downloadbinutils-redhat-b929045c930244cb76aca9da703b07009110d189.tar.gz
2001-11-01 Chris Demetriou <cgd@broadcom.com>
* ld.texinfo (Options): Document new option, -nostdlib. * lexsup.c (OPTION_NOSTDLIB): New definition. (ld_options): Add entry for "nostdlib". (parse_args): Handle OPTIONS_NOSTDLIB. * ldfile.c (ldfile_add_library_path): Don't add directories to the search path if they weren't specified on the command line and -nostdlib was specified. * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 09a03db548..320cc4cf42 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1110,6 +1110,12 @@ Normally, the linker will not produce an output file if it encounters
errors during the link process; it exits without writing an output file
when it issues any error whatsoever.
+@kindex -nostdlib
+@item -nostdlib
+Only search library directories explicitly specified on the
+command line. Library directories specified in linker scripts
+(including linker scripts specified on the command line) are ignored.
+
@ifclear SingleFormat
@kindex --oformat
@item --oformat @var{output-format}