sol2.h (NM_FLAGS): Define.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 16 Nov 2010 18:04:40 +0000 (18:04 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 16 Nov 2010 18:04:40 +0000 (18:04 +0000)
* config/sol2.h (NM_FLAGS): Define.
* doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
* doc/tm.texi: Update.

From-SVN: r166811

gcc/ChangeLog
gcc/config/sol2.h
gcc/doc/tm.texi
gcc/doc/tm.texi.in

index 070fa17..0825850 100644 (file)
@@ -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
index 72efdbd..40db4b3 100644 (file)
@@ -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
 \f
 /*
index 60c4b84..1639e94 100644 (file)
@@ -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})
index cef2a72..502145e 100644 (file)
@@ -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})