summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-06-01 09:13:51 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-06-01 07:13:51 +0000
commitd314442396916fa65739d6baeb24b2f0cfc76634 (patch)
treefd5cbf49d0e138a28501d02e9163b10e261126a2
parent76f824a4a0a6427b8c29ce6253b2b79c4ad3e519 (diff)
downloadgcc-d314442396916fa65739d6baeb24b2f0cfc76634.tar.gz
invoke.texi (-static-libgcc): Explicitly mention non-GNU linkers.
* doc/invoke.texi (-static-libgcc): Explicitly mention non-GNU linkers. From-SVN: r82529
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/invoke.texi16
2 files changed, 13 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index afd82a891f6..8d3b1497577 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * doc/invoke.texi (-static-libgcc): Explicitly mention
+ non-GNU linkers.
+
2004-06-01 Bernardo Innocenti <bernie@develer.com>
PR target/12968
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 41c474f8df8..70656da1950 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -5488,14 +5488,14 @@ this is the right thing to do.
If, instead, you use the GCC driver to create shared libraries, you may
find that they will not always be linked with the shared @file{libgcc}.
-If GCC finds, at its configuration time, that you have a GNU linker that
-does not support option @option{--eh-frame-hdr}, it will link the shared
-version of @file{libgcc} into shared libraries by default. Otherwise,
-it will take advantage of the linker and optimize away the linking with
-the shared version of @file{libgcc}, linking with the static version of
-libgcc by default. This allows exceptions to propagate through such
-shared libraries, without incurring relocation costs at library load
-time.
+If GCC finds, at its configuration time, that you have a non-GNU linker
+or a GNU linker that does not support option @option{--eh-frame-hdr},
+it will link the shared version of @file{libgcc} into shared libraries
+by default. Otherwise, it will take advantage of the linker and optimize
+away the linking with the shared version of @file{libgcc}, linking with
+the static version of libgcc by default. This allows exceptions to
+propagate through such shared libraries, without incurring relocation
+costs at library load time.
However, if a library or main executable is supposed to throw or catch
exceptions, you must link it using the G++ or GCJ driver, as appropriate