aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-07-06 02:29:10 +0000
committerAlan Modra <amodra@gmail.com>2007-07-06 02:29:10 +0000
commit9af2a943ee03e8ecd2d87d13321cd83959f76cb6 (patch)
treef413063877fea2a48547cc84b23dcb98e4b5b4b0 /bfd/elflink.c
parente3bb9257f69b8474efc852c1f09d3aa41cf047ab (diff)
downloadgdb-9af2a943ee03e8ecd2d87d13321cd83959f76cb6.zip
gdb-9af2a943ee03e8ecd2d87d13321cd83959f76cb6.tar.gz
gdb-9af2a943ee03e8ecd2d87d13321cd83959f76cb6.tar.bz2
* elflink.c (elf_link_add_object_symbols): Return via
error_free_vers on "notice" failure.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 82016e6..4de73a0 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -3674,8 +3674,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
tell it that we are about to handle an as-needed lib. */
if (!(*info->callbacks->notice) (info, NULL, abfd, NULL,
notice_as_needed))
- return FALSE;
-
+ goto error_free_vers;
/* Clone the symbol table and sym hashes. Remember some
pointers into the symbol table, and dynamic symbol count. */
@@ -4382,7 +4381,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
tell it that symbols added for crefs may need to be removed. */
if (!(*info->callbacks->notice) (info, NULL, abfd, NULL,
notice_not_needed))
- return FALSE;
+ goto error_free_vers;
free (old_tab);
objalloc_free_block ((struct objalloc *) htab->root.table.memory,
@@ -4396,7 +4395,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
{
if (!(*info->callbacks->notice) (info, NULL, abfd, NULL,
notice_needed))
- return FALSE;
+ goto error_free_vers;
free (old_tab);
old_tab = NULL;
}