diff options
author | Alan Modra <amodra@gmail.com> | 2020-05-18 20:44:30 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-18 20:56:39 +0930 |
commit | 7a87e9c80506af4c3f658c1a796c4ad18730e46c (patch) | |
tree | 62f34d831430b17768032929f48bbfa042881503 /bfd/ChangeLog | |
parent | ca859a893931d6fad8b35cf2c20afd43422a59fe (diff) | |
download | gdb-7a87e9c80506af4c3f658c1a796c4ad18730e46c.zip gdb-7a87e9c80506af4c3f658c1a796c4ad18730e46c.tar.gz gdb-7a87e9c80506af4c3f658c1a796c4ad18730e46c.tar.bz2 |
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.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b3cefd9..0e5dec0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-05-18 Alan Modra <amodra@gmail.com> + + * ecoff.c (ecoff_slurp_reloc_table): Malloc external_relocs so + they can be freed without also freeing internal_relocs. + 2020-05-18 Jaydeep Chauhan <jaydeepchauhan1494@gmail.com> PR 25713 |