diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-02-27 17:59:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-02-27 17:59:46 +0000 |
commit | 3c8deccc4f0e767b9fe362665ae904c53cac0f71 (patch) | |
tree | 9d87ae7363e1fbe134669ac8072866186249a2da /ld/ld.texinfo | |
parent | d214421eeea98e7d7fe05c6e34cf22e6889e6355 (diff) | |
download | gdb-3c8deccc4f0e767b9fe362665ae904c53cac0f71.zip gdb-3c8deccc4f0e767b9fe362665ae904c53cac0f71.tar.gz gdb-3c8deccc4f0e767b9fe362665ae904c53cac0f71.tar.bz2 |
* lexsup.c (parse_args): Recognize --no-whole-archive.
* ldlang.h (lang_input_statement_type): Add whole_archive field.
* ldlang.c (new_afile): Set whole_archive field.
(load_symbols): Check input file specific whole_archive field
rather than global variable.
* ld.texinfo, ld.1: Document --no-whole-archive.
PR 9094.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r-- | ld/ld.texinfo | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 10d1c26..811bcd2 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -189,7 +189,7 @@ ld [ -o @var{output} ] @var{objfile}@dots{} [ -( [ archives ] -) ] [ --start-group [ archives ] --end-group ] [ -split-by-reloc @var{count} ] [ -split-by-file ] - [ --whole-archive ] + [ --whole-archive ] [ --no-whole-archive ] @end smallexample This plethora of command-line options may seem intimidating, but in @@ -941,11 +941,16 @@ which refers to it. @kindex --whole-archive @cindex including an entire archive -For each archive mentioned on the command line, include every object -file in the archive in the link, rather than searching the archive for -the required object files. This is normally used to turn an archive -file into a shared library, forcing every object to be included in the -resulting shared library. +For each archive mentioned on the command line after the +@code{--whole-archive} option, include every object file in the archive +in the link, rather than searching the archive for the required object +files. This is normally used to turn an archive file into a shared +library, forcing every object to be included in the resulting shared +library. + +@kindex --no-whole-archive +Turn off the effect of the @code{--whole-archive} option for archives +which appear later on the command line. @kindex -X @cindex local symbols, deleting |