ECOFF slurp_relocs thinko
authorAlan Modra <amodra@gmail.com>
Mon, 18 May 2020 11:14:30 +0000 (20:44 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 18 May 2020 11:26:39 +0000 (20:56 +0930)
commit7a87e9c80506af4c3f658c1a796c4ad18730e46c
tree62f34d831430b17768032929f48bbfa042881503
parentca859a893931d6fad8b35cf2c20afd43422a59fe
ECOFF slurp_relocs thinko

In git commit 806470a219 I swapped the order of internal vs. external
relocs memory allocation in ecoff_slurp_reloc_table, the idea being
that the external reloc size can be sanity checked against file size.
However, that fails badly with bfd_alloc memory where releasing any
block also releases all more recently allocated blocks.

* ecoff.c (ecoff_slurp_reloc_table): Malloc external_relocs so
they can be freed without also freeing internal_relocs.
bfd/ChangeLog
bfd/ecoff.c
This page took 0.024694 seconds and 4 git commands to generate.