From 83dcdc61682f4a7a3be7387c8e1527a84e714dcd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 21 Nov 1995 21:25:35 +0000 Subject: [PATCH] * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear special_sections before returning when called with a non XCOFF BFD. --- bfd/ChangeLog | 4 ++++ bfd/xcofflink.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d0915241f27..131841d8895 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ Tue Nov 21 13:03:57 1995 Ian Lance Taylor + * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear + special_sections before returning when called with a non XCOFF + BFD. + * coffgen.c (coff_renumber_symbols): Sort common symbols with global symbols. diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index 78a2a447062..7fd546d4079 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -2634,7 +2634,11 @@ bfd_xcoff_size_dynamic_sections (output_bfd, info, libpath, entry, bfd_byte *debug_contents = NULL; if (! XCOFF_XVECP (output_bfd->xvec)) - return true; + { + for (i = 0; i < 6; i++) + special_sections[i] = NULL; + return true; + } ldinfo.failed = false; ldinfo.output_bfd = output_bfd; -- 2.30.2