From: Eric Botcazou Date: Tue, 1 Jun 2004 07:13:51 +0000 (+0200) Subject: invoke.texi (-static-libgcc): Explicitly mention non-GNU linkers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d314442396916fa65739d6baeb24b2f0cfc76634;p=gcc.git invoke.texi (-static-libgcc): Explicitly mention non-GNU linkers. * doc/invoke.texi (-static-libgcc): Explicitly mention non-GNU linkers. From-SVN: r82529 --- 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