summaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-04-26 13:43:10 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-04-26 13:43:10 +0000
commitf68d4bcc932ea98bc424927758661827bcdbdc1a (patch)
treeea5a77a4e9ffad9aa209b8efe93412058f9ceb31 /bfd/opncls.c
parent2f21ac631547dfe4b44af05d0bc567d9a93a82fd (diff)
downloadgdb-f68d4bcc932ea98bc424927758661827bcdbdc1a.tar.gz
* opncls.c (bfd_make_readable): Call bfd_section_list_clear.
* xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 49482f01cd2..65a2a4252f1 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -614,7 +614,6 @@ bfd_make_readable(abfd)
abfd->arch_info = &bfd_default_arch_struct;
abfd->where = 0;
- abfd->sections = (asection *) NULL;
abfd->format = bfd_unknown;
abfd->my_archive = (bfd *) NULL;
abfd->origin = 0;
@@ -633,7 +632,8 @@ bfd_make_readable(abfd)
abfd->outsymbols = 0;
abfd->tdata.any = 0;
- bfd_check_format(abfd, bfd_object);
+ bfd_section_list_clear (abfd);
+ bfd_check_format (abfd, bfd_object);
return true;
}