]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-10-16 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 16 Oct 2004 18:59:34 +0000 (18:59 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 16 Oct 2004 18:59:34 +0000 (18:59 +0000)
* elflink.c (elf_link_add_object_symbols): Also clear
_cooked_size for warning sections.

bfd/ChangeLog
bfd/elflink.c

index 9089d5e59c9b747685b59284add8f0ee2151c843..80e9bd1ee0ad768d5e6a14600d0964c107101269 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elflink.c (elf_link_add_object_symbols): Also clear
+       _cooked_size for warning sections.
+
 2004-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        Merge from mainline:
index 253efd9a5cdaa902575e2d8a5411f052e57173f0..0353bdcb5f3308b4cb930b2d83524479245b4705 100644 (file)
@@ -2948,6 +2948,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
                         the section size so that the warning does not
                         get copied into the output file.  */
                      s->_raw_size = 0;
+                     s->_cooked_size = 0;
                      continue;
                    }
                }
@@ -2974,6 +2975,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
                  /* Clobber the section size so that the warning does
                     not get copied into the output file.  */
                  s->_raw_size = 0;
+                 s->_cooked_size = 0;
                }
            }
        }