aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2002-05-22 05:08:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2002-05-22 05:08:31 +0000
commitaa713662e8c8349dbf475437e8db72ffd9a9cc4d (patch)
tree0bbf4d6f1d9d9515dca47cdc30a8e310987e49c3 /ld/ld.texinfo
parent6713542fbc51e3bdc0b347ae2bf14a17db67d2bd (diff)
downloadgdb-aa713662e8c8349dbf475437e8db72ffd9a9cc4d.zip
gdb-aa713662e8c8349dbf475437e8db72ffd9a9cc4d.tar.gz
gdb-aa713662e8c8349dbf475437e8db72ffd9a9cc4d.tar.bz2
2002-05-21 H.J. Lu (hjl@gnu.org)
* emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle "-z muldefs". (gld${EMULATION_NAME}_list_options): Add "-z muldefs". * ld.texinfo: Updated for --allow-multiple-definition and "-z muldefs". * ldmain.c (main): Initialize the allow_multiple_definition field to false. * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New. (ld_options): Add --allow-multiple-definition. (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index a884ffd..b7fa2a9 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -859,6 +859,7 @@ of this object will ignore any default library search paths.
@code{now} marks the object with the non-lazy runtime binding.
@code{origin} marks the object may contain $ORIGIN.
@code{defs} disallows undefined symbols.
+@code{muldefs} allows multiple definitions.
@code{combreloc} combines multiple reloc sections and sorts them
to make dynamic symbol lookup caching possible.
@code{nocombreloc} disables multiple reloc sections combining.
@@ -1080,6 +1081,14 @@ Normally when creating a non-symbolic shared library, undefined symbols
are allowed and left to be resolved by the runtime loader. These options
disallows such undefined symbols.
+@kindex --allow-multiple-definition
+@kindex -z muldefs
+@item --allow-multiple-definition
+@itemx -z muldefs
+Normally when a symbol is defined multiple times, the linker will
+report a fatal error. These options allow multiple definitions and the
+first definition will be used.
+
@kindex --allow-shlib-undefined
@item --allow-shlib-undefined
Allow undefined symbols in shared objects even when --no-undefined is