aboutsummaryrefslogtreecommitdiff
path: root/bfd/xcofflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-04-26 13:43:10 +0000
committerAlan Modra <amodra@gmail.com>2002-04-26 13:43:10 +0000
commite54fdaa5c98411e1874ba00e0b2d08815148ac06 (patch)
tree6985259052abd682500b97e273f396480d669568 /bfd/xcofflink.c
parenta50c18456ead8f239ca5af06ad7e418f6659ddce (diff)
downloadgdb-e54fdaa5c98411e1874ba00e0b2d08815148ac06.zip
gdb-e54fdaa5c98411e1874ba00e0b2d08815148ac06.tar.gz
gdb-e54fdaa5c98411e1874ba00e0b2d08815148ac06.tar.bz2
* opncls.c (bfd_make_readable): Call bfd_section_list_clear.
* xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
Diffstat (limited to 'bfd/xcofflink.c')
-rw-r--r--bfd/xcofflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c
index 79952d2..0769826 100644
--- a/bfd/xcofflink.c
+++ b/bfd/xcofflink.c
@@ -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);