diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 24da20f69a2..5505870b506 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-10-06 Alan Modra + + PR 16406 + * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document. + 2004-10-05 Kazu Hirata * basic-block.h: Remove the prototype for diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 102d4f8c06c..c22ae29905b 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -306,6 +306,21 @@ driver how to place a reference to @file{libgcc} on the link command line, but, unlike @code{LIBGCC_SPEC}, it is used unmodified. @end defmac +@defmac USE_LD_AS_NEEDED +A macro that controls the modifications to @code{LIBGCC_SPEC} +mentioned in @code{REAL_LIBGCC_SPEC}. If nonzero, a spec will be +generated that uses --as-needed and the shared libgcc in place of the +static exception handler library, when linking without any of +@code{-static}, @code{-static-libgcc}, or @code{-shared-libgcc}. +@end defmac + +@defmac LINK_EH_SPEC +If defined, this C string constant is added to @code{LINK_SPEC}. +When @code{USE_LD_AS_NEEDED} is zero or undefined, it also affects +the modifications to @code{LIBGCC_SPEC} mentioned in +@code{REAL_LIBGCC_SPEC}. +@end defmac + @defmac STARTFILE_SPEC Another C string constant used much like @code{LINK_SPEC}. The difference between the two is that @code{STARTFILE_SPEC} is used at