From d314442396916fa65739d6baeb24b2f0cfc76634 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 1 Jun 2004 09:13:51 +0200 Subject: [PATCH] invoke.texi (-static-libgcc): Explicitly mention non-GNU linkers. * doc/invoke.texi (-static-libgcc): Explicitly mention non-GNU linkers. From-SVN: r82529 --- gcc/ChangeLog | 5 +++++ gcc/doc/invoke.texi | 16 ++++++++-------- 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 + + * doc/invoke.texi (-static-libgcc): Explicitly mention + non-GNU linkers. + 2004-06-01 Bernardo Innocenti 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 -- 2.30.2