.RB "[\|" \-r | \-Ur "\|]"
.RB "[\|" \-S "\|]"
.RB "[\|" \-s "\|]"
+.RB "[\|" \-sort\-common "\|]"
.RB "[\|" "\-T\ "\c
.I commandfile\c
\&\|]
\&]
.RB "[\|" \-V "\|]"
.RB "[\|" \-v "\|]"
+.RB "[\|" \-\-verbose "\|]"
.RB "[\|" \-\-version "\|]"
+.RB "[\|" \-warn\-common "\|]"
+.RB "[\|" \-warn\-once "\|]"
.RB "[\|" \-X "\|]"
.RB "[\|" \-x "\|]"
.ad b
specifies a library.
.TP
-.BI "-b " "input-format"\c
+.BI "\-b " "input-format"\c
\&
Specify the binary format for input object files that follow this option
on the command line. You don't usually need to specify this, as
\&.
.TP
-.BI "-c " "commandfile"\c
+.BI "\-c " "commandfile"\c
\&
Directs \c
.B ld\c
with scripts written to call the old linker.
.TP
-.BI "-format " "input-format"\c
+.BI "\-format " "input\-format"\c
\&
Synonym for \c
.B \-b\c
\& \c
-.I input-format\c
+.I input\-format\c
\&.
.TP
\&).
.TP
-.BI "-l" "ar"\c
+.BI "\-l" "ar"\c
\&
Add an archive file \c
.I ar\c
specified.
.TP
-.BI "-L" "searchdir"\c
+.BI "\-L" "searchdir"\c
\&
This command adds path \c
.I searchdir\c
Emulate the
.I emulation
linker. You can list the available emulations with the
-.I \-V
+.I \-\-verbose
option. This option overrides the compiled-in default, which is the
system for which you configured
.BR ld .
if possible.
.TP
-.B \-noinhibit-exec
+.B \-noinhibit\-exec
Normally, the linker will not produce an output file if it encounters
errors during the link process. With this flag, you can specify that
you wish the output file retained even after non-fatal errors.
.TP
-.BI "-o " "output"\c
+.BI "\-o " "output"\c
\&
.I output\c
\&
\& can also specify the output file name.
.TP
-.BI "-oformat " "output-format"\c
+.BI "\-oformat " "output\-format"\c
\&
Specify the binary format for the output object file.
You don't usually need to specify this, as
can also specify the output format, but this option overrides it.
.TP
-.BI "-R " "filename"\c
+.BI "\-R " "filename"\c
\&
.I file\c
\&
Omits all symbol information from the output file.
.TP
-.BI "-Tbss " "org"\c
+.B \-sort\-common
+Normally, when
+.B ld
+places the global common symbols in the appropriate output sections,
+it sorts them by size. First come all the one byte symbols, then all
+the two bytes, then all the four bytes, and then everything else.
+This is to prevent gaps between symbols due to
+alignment constraints. This option disables that sorting.
+
+.TP
+.BI "\-Tbss " "org"\c
.TP
-.BI "-Tdata " "org"\c
+.BI "\-Tdata " "org"\c
.TP
-.BI "-Ttext " "org"\c
+.BI "\-Ttext " "org"\c
Use \c
.I org\c
\& as the starting address for\(em\&respectively\(em\&the
\& must be a hexadecimal integer.
.TP
-.BI "-T " "commandfile"\c
+.BI "\-T " "commandfile"\c
\&
.TP
-.BI "-T" "commandfile"\c
+.BI "\-T" "commandfile"\c
Equivalent to \c
.B \-c \c
.I commandfile\c
\& processes them.
.TP
-.BI "-u " "sym"
+.BI "\-u " "sym"
Forces \c
.I sym\c
\& to be entered in the output file as an undefined symbol.
\&.
.TP
-.B \-V
+.B \-\-verbose
Display the version number for \c
.B ld
and list the supported emulations.
-Print which input files can and can not be opened.
+Display which input files can and can not be opened.
.TP
-.B \-v
+.B \-v, \-V
Display the version number for \c
.B ld\c
\&.
-Print which input files can and can not be opened.
.TP
.B \-\-version
.B ld
and exit.
+.TP
+.B \-warn\-common
+Warn when a common symbol is combined with another common symbol or with
+a symbol definition. Unix linkers allow this somewhat sloppy practice,
+but linkers on some other operating systems do not. This option allows
+you to find potential problems from combining global symbols.
+
+.TP
+.B \-warn\-once
+Only warn once for each undefined symbol, rather than once per module
+which refers to it.
+
.TP
.B \-X
If \c