aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2010-11-16 18:04:40 +0000
committerRainer Orth <ro@gcc.gnu.org>2010-11-16 18:04:40 +0000
commit3e794bfe4393d5398c21658837c7437f1a1cbc5c (patch)
tree50d2d6ea901a4edf73672609aa59e084a87acdf1
parent431f321fbdb350136ca5788cdab4e7e3f5f32abe (diff)
downloadgcc-3e794bfe4393d5398c21658837c7437f1a1cbc5c.zip
gcc-3e794bfe4393d5398c21658837c7437f1a1cbc5c.tar.gz
gcc-3e794bfe4393d5398c21658837c7437f1a1cbc5c.tar.bz2
sol2.h (NM_FLAGS): Define.
* config/sol2.h (NM_FLAGS): Define. * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document. * doc/tm.texi: Update. From-SVN: r166811
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sol2.h4
-rw-r--r--gcc/doc/tm.texi12
-rw-r--r--gcc/doc/tm.texi.in12
4 files changed, 30 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 070fa17..0825850 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * config/sol2.h (NM_FLAGS): Define.
+ * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
+ * doc/tm.texi: Update.
+
2010-11-16 Nick Clifton <nickc@redhat.com>
* config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index 72efdbd..40db4b3 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -192,6 +192,10 @@ along with GCC; see the file COPYING3. If not see
#undef SUPPORTS_INIT_PRIORITY
#define SUPPORTS_INIT_PRIORITY 0
+/* collect2.c can only parse GNU nm -n output. Solaris nm needs -png to
+ produce the same format. */
+#define NM_FLAGS "-png"
+
#define STDC_0_IN_SYSTEM_HEADERS 1
/*
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 60c4b84..1639e94 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -8431,16 +8431,24 @@ part of a cross compiler always uses @command{nm} for the target machine.
Define this macro as a C string constant containing the file name to use
to execute @command{nm}. The default is to search the path normally for
@command{nm}.
+@end defmac
+
+@defmac NM_FLAGS
+@command{collect2} calls @command{nm} to scan object files for static
+constructors and destructors and LTO info. By default, @option{-n} is
+passed. Define @code{NM_FLAGS} to a C string constant if other options
+are needed to get the same output formut as GNU @command{nm -n}
+produces.
+@end defmac
If your system supports shared libraries and has a program to list the
dynamic dependencies of a given library or executable, you can define
these macros to enable support for running initialization and
termination functions in shared libraries:
-@end defmac
@defmac LDD_SUFFIX
Define this macro to a C string constant containing the name of the program
-which lists dynamic dependencies, like @command{"ldd"} under SunOS 4.
+which lists dynamic dependencies, like @command{ldd} under SunOS 4.
@end defmac
@defmac PARSE_LDD_OUTPUT (@var{ptr})
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index cef2a72..502145e 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -8405,16 +8405,24 @@ part of a cross compiler always uses @command{nm} for the target machine.
Define this macro as a C string constant containing the file name to use
to execute @command{nm}. The default is to search the path normally for
@command{nm}.
+@end defmac
+
+@defmac NM_FLAGS
+@command{collect2} calls @command{nm} to scan object files for static
+constructors and destructors and LTO info. By default, @option{-n} is
+passed. Define @code{NM_FLAGS} to a C string constant if other options
+are needed to get the same output formut as GNU @command{nm -n}
+produces.
+@end defmac
If your system supports shared libraries and has a program to list the
dynamic dependencies of a given library or executable, you can define
these macros to enable support for running initialization and
termination functions in shared libraries:
-@end defmac
@defmac LDD_SUFFIX
Define this macro to a C string constant containing the name of the program
-which lists dynamic dependencies, like @command{"ldd"} under SunOS 4.
+which lists dynamic dependencies, like @command{ldd} under SunOS 4.
@end defmac
@defmac PARSE_LDD_OUTPUT (@var{ptr})