aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.1
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-12-31 19:50:29 +0000
committerIan Lance Taylor <ian@airs.com>1996-12-31 19:50:29 +0000
commitde220cbdb9f55e4c9a95055982aa947813378e6f (patch)
treed699ef72c101fe7bc4302b6f412beb7745a94f5f /ld/ld.1
parent148437ec14d18450dcfa0ebe7cfa2db57e263392 (diff)
downloadgdb-de220cbdb9f55e4c9a95055982aa947813378e6f.zip
gdb-de220cbdb9f55e4c9a95055982aa947813378e6f.tar.gz
gdb-de220cbdb9f55e4c9a95055982aa947813378e6f.tar.bz2
* ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
fields. * lexsup.c (parse_args): Recognize --auxiliary/-f and --filter/-F. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Pass filter_shlib and auxiliary_filter_shlib to size_dynamic_sections. * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
Diffstat (limited to 'ld/ld.1')
-rw-r--r--ld/ld.166
1 files changed, 43 insertions, 23 deletions
diff --git a/ld/ld.1 b/ld/ld.1
index 10fcf7e..610f046 100644
--- a/ld/ld.1
+++ b/ld/ld.1
@@ -48,9 +48,17 @@ ld \- the GNU linker
.RB "[\|" \-embedded\-relocs "\|]"
.RB "[\|" \-E "\|]"
.RB "[\|" \-export\-dynamic "\|]"
-.RB "[\|" \-F "\|]"
+.RB "[\|" "\-f\ "\c
+.I name\c
+\&\|]
+.RB "[\|" "\-\-auxiliary\ "\c
+.I name\c
+\&\|]
.RB "[\|" "\-F\ "\c
-.I format\c
+.I name\c
+\&\|]
+.RB "[\|" "\-\-filter\ "\c
+.I name\c
\&\|]
.RB "[\|" "\-format\ "\c
.I input-format\c
@@ -59,6 +67,12 @@ ld \- the GNU linker
.RB "[\|" \-G
.I size\c
\&\|]
+.RB "[\|" "\-h\ "\c
+.I name\c
+\&\|]
+.RB "[\|" "\-soname\ "\c
+.I name\c
+\&\|]
.RB "[\|" \-\-help "\|]"
.RB "[\|" \-i "\|]"
.RB "[\|" \-l\c
@@ -482,28 +496,24 @@ by a dynamic object. This option is needed for some uses of
.I dlopen.
.TP
-.B \-F
+.BI "-f " "name"
.TP
-.BI "-F" "format"
-Some older linkers used this option throughout a compilation toolchain
-for specifying object-file format for both input and output object
-files. \c
-.B ld\c
-\&'s mechanisms (the \c
-.B \-b\c
-\& or \c
-.B \-format\c
-\& options
-for input files, the \c
-.B TARGET\c
-\& command in linker scripts for output
-files, the \c
-.B GNUTARGET\c
-\& environment variable) are more flexible, but
-but it accepts (and ignores) the \c
-.B \-F\c
-\& option flag for compatibility
-with scripts written to call the old linker.
+.BI "--auxiliary " "name"
+When creating an ELF shared object, set the internal DT_AUXILIARY field
+to the specified name. This tells the dynamic linker that the symbol
+table of the shared object should be used as an auxiliary filter on the
+symbol table of the shared object
+.I name.
+
+.TP
+.BI "-F " "name"
+.TP
+.BI "--filter " "name"
+When creating an ELF shared object, set the internal DT_FILTER field to
+the specified name. This tells the dynamic linker that the symbol table
+of the shared object should be used as a filter on the symbol table of
+the shared object
+.I name.
.TP
.BI "\-format " "input\-format"
@@ -525,6 +535,16 @@ to
under MIPS ECOFF. Ignored for other object file formats.
.TP
+.BI "-h " "name"
+.TP
+.BI "-soname " "name"
+When creating an ELF shared object, set the internal DT_SONAME field to
+the specified name. When an executable is linked with a shared object
+which has a DT_SONAME field, then when the executable is run the dynamic
+linker will attempt to load the shared object specified by the DT_SONAME
+field rather than the using the file name given to the linker.
+
+.TP
.B \-\-help
Print a summary of the command-line options on the standard output and exit.
This option and