* ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
authorPer Bothner <per@bothner.com>
Tue, 1 Jun 1993 22:44:42 +0000 (22:44 +0000)
committerPer Bothner <per@bothner.com>
Tue, 1 Jun 1993 22:44:42 +0000 (22:44 +0000)
symbols, unless stripping.

ld/ChangeLog
ld/ldsym.c

index 37e3c0fdedd5b407b5d0f93239b5c031b00e644f..2a98c622442d1cda229bd90469a01a61d26ad5a7 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jun  1 14:56:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
+
+       * ldsym.c (write_file_locals):  Write BSF_CONSTRUCTOR
+       symbols, unless stripping.
+
 Tue May 25 15:34:25 1993  Ian Lance Taylor  (ian@cygnus.com)
 
        * Makefile.in: configure looks for ####, so remove lines with many
index 8b93a2ea6eebf8cd75f49146f4a406a3bf4f9701..ea373d13f7cbb400306e8120209ea459feba6c60 100644 (file)
@@ -528,9 +528,12 @@ write_file_locals (output_buffer)
                    *output_buffer++ = p;
                  }
              }
-           else if (p->flags & BSF_CTOR)
+           else if (p->flags & BSF_CONSTRUCTOR)
              {
-               /* Throw it away */
+               if (strip_symbols != STRIP_ALL)
+                 {
+                   *output_buffer++ = p;
+                 }
              }
            else
              {