* coffgen.c (coff_renumber_symbols): Sort common symbols with
authorIan Lance Taylor <ian@airs.com>
Tue, 21 Nov 1995 18:06:41 +0000 (18:06 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 21 Nov 1995 18:06:41 +0000 (18:06 +0000)
global symbols.

bfd/ChangeLog
bfd/coffgen.c

index 4651e7e6f66a41e93e24c01ba75769bb5380936b..d0915241f27e8e8a4f008fa8793caad5074b0205 100644 (file)
@@ -1,3 +1,12 @@
+Tue Nov 21 13:03:57 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * coffgen.c (coff_renumber_symbols): Sort common symbols with
+       global symbols.
+
+       * coffcode.h (coff_compute_section_file_positions): Only pad the
+       previous section to force file alignment when creating an
+       executable.
+
 Mon Nov 20 14:54:09 1995  Ian Lance Taylor  <ian@cygnus.com>
 
        * coffcode.h (coff_compute_section_file_positions): If
index 4bce970a83660f58db00c1da533f6ae83c7aaf0e..cb9b2ba630cc636c2b6439b2be041f50adf7af6e 100644 (file)
@@ -634,16 +634,18 @@ coff_renumber_symbols (bfd_ptr, first_undef)
     for (i = 0; i < symbol_count; i++)
       if ((symbol_ptr_ptr[i]->flags & BSF_NOT_AT_END) != 0
          || (!bfd_is_und_section (symbol_ptr_ptr[i]->section)
+             && !bfd_is_com_section (symbol_ptr_ptr[i]->section)
              && ((symbol_ptr_ptr[i]->flags & (BSF_GLOBAL | BSF_FUNCTION))
                  != BSF_GLOBAL)))
        *newsyms++ = symbol_ptr_ptr[i];
 
     for (i = 0; i < symbol_count; i++)
       if (!bfd_is_und_section (symbol_ptr_ptr[i]->section)
-         && ((symbol_ptr_ptr[i]->flags & (BSF_GLOBAL
-                                          | BSF_NOT_AT_END
-                                          | BSF_FUNCTION))
-             == BSF_GLOBAL))
+         && (bfd_is_com_section (symbol_ptr_ptr[i]->section)
+             || ((symbol_ptr_ptr[i]->flags & (BSF_GLOBAL
+                                              | BSF_NOT_AT_END
+                                              | BSF_FUNCTION))
+                 == BSF_GLOBAL)))
        *newsyms++ = symbol_ptr_ptr[i];
 
     *first_undef = newsyms - bfd_ptr->outsymbols;