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 070fa17a654dd3d7047143147d63989d131ecabc..08258500e7793f5e17edb2c0242f1ba5d27e16fc 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 72efdbd339ef3e1d0f027a18560e8284d3867be6..40db4b36418c7ff0d2699394b509c8be5aef4f38 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 60c4b847b853c12512bf7f63a1d1d4ecfddb9a23..1639e943c9f20fcbcee8291017fd450097f0b205 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 cef2a72b8c80c28f95be86643188fe24781b8a32..502145e28fa7679d89d8a8af82a3f7114d1ca527 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})