https://sourceware.org/bugzilla/show_bug.cgi?id=31999
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Alan Modra from comment #1)
> Ouch, missing assignment to *new_size in merge_gnu_build_notes in the case
> where new size is the same as original size?
Tried:
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 64033673a9e..c2dc6e11b23 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -2609,6 +2609,8 @@ merge_gnu_build_notes (bfd * abfd,
*new_size = nsize;
memcpy (contents, new_contents, nsize);
}
+ else
+ *new_size = size;
free (new_contents);
done:
But it didn't work. Working on a testcase first.
--
You are receiving this mail because:
You are on the CC list for the bug.