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.1 | |
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.1')
-rw-r--r-- | ld/ld.1 | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -121,6 +121,7 @@ ld \- the GNU linker .RB "[\|" \-warn\-constructors "\|]" .RB "[\|" \-warn\-once "\|]" .RB "[\|" \-\-whole\-archive "\|]" +.RB "[\|" \-\-no\-whole\-archive "\|]" .RB "[\|" \-X "\|]" .RB "[\|" \-x "\|]" .ad b @@ -913,11 +914,18 @@ which refers to it. .TP .B \-\-whole\-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 +.B \-\-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. + +.TP +.B \-\-no\-whole\-archive +Turn off the effect of the +.B \-\-whole\-archive +option for archives which appear later on the command line. .TP .B \-X |