summaryrefslogtreecommitdiff
path: root/gcc/doc/tm.texi
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-31 15:02:59 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-31 15:02:59 +0000
commit1ba3a59030c34669fd3f957740aabe7171fd7dc6 (patch)
tree85fdd38f176305106cbb90d88435a6728e14145d /gcc/doc/tm.texi
parentffc5871af3df4ab780cbcd6c4b105f99a50672ee (diff)
downloadgcc-1ba3a59030c34669fd3f957740aabe7171fd7dc6.tar.gz
PR driver/33772
* collect2.c (SHLIB_SUFFIX): Define if not defined. (write_c_file_stat): Use SHLIB_SUFFIX. * som.h (SHLIB_SUFFIX): Define. * doc/tm.texi (SHLIB_SUFFIX): Document. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131235 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r--gcc/doc/tm.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 0bf0b34cfe9..00dde97ad25 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -7931,6 +7931,14 @@ code must advance @var{ptr} to the beginning of the filename on that
line. Otherwise, it must set @var{ptr} to @code{NULL}.
@end defmac
+@defmac SHLIB_SUFFIX
+Define this macro to a C string constant containing the default shared
+library extension of the target (e.g., @samp{".so"}). @command{collect2}
+strips version information after this suffix when generating global
+constructor and destructor names. This define is only needed on targets
+that use @command{collect2} to process constructors and destructors.
+@end defmac
+
@node Instruction Output
@subsection Output of Assembler Instructions