aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-27 01:04:29 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-27 01:04:29 +0000
commita6626e8c3089ee949fcb177dc0a3253a8c3b9c58 (patch)
tree73155bba76985dfbec7517fff24015b4d4296985 /bfd/elflink.c
parent36e44abdc26c5063b225e7204127de5473d91ac3 (diff)
downloadgdb-a6626e8c3089ee949fcb177dc0a3253a8c3b9c58.zip
gdb-a6626e8c3089ee949fcb177dc0a3253a8c3b9c58.tar.gz
gdb-a6626e8c3089ee949fcb177dc0a3253a8c3b9c58.tar.bz2
2007-07-26 Michael Snyder <msnyder@svkmacdonelllnx>
* linker.c (bfd_section_already_linked_table_insert): Change return type from void to boolean. Return FALSE on failure. (_bfd_generic_section_already_linked): Test return value of bfd_section_already_linked_table_insert, call fatal on error. * elflink.c (_bfd_elf_section_already_linked): Test return value of bfd_section_already_linked_table_insert, call fatal on error. * libbfd-in.h (bfd_section_already_linked_table_insert): Update return type to bfd_boolean. * libbfd.h: Regenerate.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 1e98cb7..6cfb8b9 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -12235,7 +12235,8 @@ _bfd_elf_section_already_linked (bfd *abfd, struct bfd_section *sec,
}
/* This is the first section with this name. Record it. */
- bfd_section_already_linked_table_insert (already_linked_list, sec);
+ if (! bfd_section_already_linked_table_insert (already_linked_list, sec))
+ info->callbacks->einfo (_("%F%P: already_linked_table: %E"));
}
bfd_boolean