add comment
authorIan Lance Taylor <ian@airs.com>
Tue, 7 Sep 1999 02:58:00 +0000 (02:58 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 7 Sep 1999 02:58:00 +0000 (02:58 +0000)
bfd/cofflink.c

index 74d1a12ee727df64c8164e28fc5956e5f7c5ea89..0b492ae8426f8ca0a846c3c9aa5b2cdd0235fe5a 100644 (file)
@@ -438,6 +438,11 @@ coff_link_add_symbols (abfd, info)
            (*sym_hash)->coff_link_hash_flags |=
              COFF_LINK_HASH_PE_SECTION_SYMBOL;
 
+         /* Limit the alignment of a common symbol to the possible
+             alignment of a section.  There is no point to permitting
+             a higher alignment for a common symbol: we can not
+             guarantee it, and it may cause us to allocate extra space
+             in the common section.  */
          if (section == bfd_com_section_ptr
              && (*sym_hash)->root.type == bfd_link_hash_common
              && ((*sym_hash)->root.u.c.p->alignment_power