2000-02-18 Geoff Keating <geoffk@cygnus.com>
+ * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
+ is no bfd_free(). Revert bfd_free part of previous change.
+
+2000-02-18 Geoff Keating <geoffk@cygnus.com>
+
* coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
arrays.
(coff_compute_section_file_positions): Use bfd_free to pair
|| (bfd_read (buf, 1, bfd_coff_symesz (abfd), abfd)
!= bfd_coff_symesz (abfd)))
{
- bfd_free (buf);
+ free (buf);
return false;
}
coff_swap_sym_in (abfd, (PTR) buf, (PTR) &sym);
cputype = sym.n_type & 0xff;
else
cputype = 0;
- bfd_free (buf);
+ free (buf);
}
}
current->target_index = target_index++;
}
- bfd_free (section_list);
+ free (section_list);
}
#else /* ! COFF_IMAGE_WITH_PE */
{
coff_swap_filehdr_out (abfd, (PTR) & internal_f, (PTR) buff);
amount = bfd_write ((PTR) buff, 1, bfd_coff_filhsz (abfd), abfd);
- bfd_free (buff);
+ free (buff);
if (amount != bfd_coff_filhsz (abfd))
return false;
coff_swap_aouthdr_out (abfd, (PTR) & internal_a, (PTR) buff);
amount = bfd_write ((PTR) buff, 1, bfd_coff_aoutsz (abfd), abfd);
- bfd_free (buff);
+ free (buff);
if (amount != bfd_coff_aoutsz (abfd))
return false;