aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-06-29 02:09:42 +0000
committerAlan Modra <amodra@gmail.com>2007-06-29 02:09:42 +0000
commitc55fe0967e9ec38c1e9d9d3ffc4db30a49323302 (patch)
treef3006f01e93462f8900dc2b1ebb6efa5ecb4242a /bfd/elflink.c
parent375de94a5e426b8277598a5f4d9e036b4b5d8b30 (diff)
downloadgdb-c55fe0967e9ec38c1e9d9d3ffc4db30a49323302.zip
gdb-c55fe0967e9ec38c1e9d9d3ffc4db30a49323302.tar.gz
gdb-c55fe0967e9ec38c1e9d9d3ffc4db30a49323302.tar.bz2
* 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.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index dfdbade..f27db39 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -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