* opncls.c (bfd_make_readable): Call bfd_section_list_clear.
[deliverable/binutils-gdb.git] / bfd / xcofflink.c
index 79952d2280a015157ec3f0cdcecbed9b5faa880a..076982675209727985c20a60454e181063fe626b 100644 (file)
@@ -2121,7 +2121,7 @@ xcoff_link_add_dynamic_symbols (abfd, info)
 
   /* Remove the sections from this object, so that they do not get
      included in the link.  */
-  abfd->sections = NULL;
+  bfd_section_list_clear (abfd);
 
   bfd_xcoff_swap_ldhdr_in (abfd, contents, &ldhdr);
 
This page took 0.025098 seconds and 4 git commands to generate.