* elflink.c (_bfd_elf_link_assign_sym_version): Improve error
authorAlan Modra <amodra@gmail.com>
Fri, 29 Jun 2007 02:09:42 +0000 (02:09 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 29 Jun 2007 02:09:42 +0000 (02:09 +0000)
message for undefined version nodes.
(elf_gc_sweep): Don't warn when zero size sections are
removed.

bfd/ChangeLog
bfd/elflink.c

index 9cf09dfea8935e54c8b7e8b08460971995199eec..dbf6409d1e26329af81f59cff849187241d40fe5 100644 (file)
@@ -1,3 +1,10 @@
+2007-06-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (_bfd_elf_link_assign_sym_version): Improve error
+       message for undefined version nodes.
+       (elf_gc_sweep): Don't warn when zero size sections are
+       removed.
+
 2007-06-29  Nathan Froyd  <froydnj@codesourcery.com>
 
        * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
index dfdbade6353c337bf2459d07f52550cfd6ca7acc..f27db39dd80189160693ccbb3be56b7af1721690 100644 (file)
@@ -1947,7 +1947,7 @@ _bfd_elf_link_assign_sym_version (struct elf_link_hash_entry *h, void *data)
          /* We could not find the version for a symbol when
             generating a shared archive.  Return an error.  */
          (*_bfd_error_handler)
-           (_("%B: undefined versioned symbol name %s"),
+           (_("%B: version node not found for symbol %s"),
             sinfo->output_bfd, h->root.root.string);
          bfd_set_error (bfd_error_bad_value);
          sinfo->failed = TRUE;
@@ -10516,7 +10516,7 @@ elf_gc_sweep (bfd *abfd, struct bfd_link_info *info)
             to remove a section from the output.  */
          o->flags |= SEC_EXCLUDE;
 
-         if (info->print_gc_sections == TRUE)
+         if (info->print_gc_sections && o->size != 0)
            _bfd_error_handler (_("Removing unused section '%s' in file '%B'"), sub, o->name);
 
          /* But we also have to update some of the relocation
This page took 0.034238 seconds and 4 git commands to generate.