[PATCH] Free symbol buffers only if they are no longer in use
H.J. Lu
hjl.tools@gmail.com
Mon Sep 17 15:52:00 GMT 2018
On Mon, Sep 17, 2018 at 8:21 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi H.J.
>
>> PR binutils/23633
>> * objcopy.c (strip_specific_buffer): New.
>> (strip_unneeded_buffer): Likewise.
>> (keep_specific_buffer): Likewise.
>> (localize_specific_buffer): Likewise.
>> (globalize_specific_buffer): Likewise.
>> (keepglobal_specific_buffer): Likewise.
>> (weaken_specific_buffer): Likewise.
>> (add_specific_symbols): Add an argument to return pointer to
>> allocated buffer. Don't free allocated buffer.
>> (copy_main): Update add_specific_symbols to update pointers to
>> allocated buffer. Free pointers to allocated buffer before
>> return.
>> * testsuite/binutils-all/objcopy.exp: Run pr23633.
>> * testsuite/binutils-all/pr23633.d: New file.
>> * testsuite/binutils-all/pr23633.list: Likewise.
>> * testsuite/binutils-all/pr23633.s: Likewise.
>
> Approved - please apply.
>
The testcase part has been checked into master. Here is the rest of the patch
I am checking in.
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Free-symbol-buffers-if-they-are-no-longer-in-use.patch
Type: text/x-patch
Size: 5640 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180917/82e24251/attachment.bin>
More information about the Binutils
mailing list