From 964be70df76a830cc8d514f86dd44dd6e5bdc114 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 20 Jul 2024 10:08:32 +0930 Subject: PR31999 strip [.gnu.build.attributes]: failed PR 31999 * objcopy.c (merge_gnu_build_notes): Always set *new_size. --- binutils/objcopy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 6403367..24e31cc 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -2203,6 +2203,7 @@ merge_gnu_build_notes (bfd * abfd, unsigned long previous_open_end = 0; long relsize; + *new_size = size; relsize = bfd_get_reloc_upper_bound (abfd, sec); if (relsize > 0) { -- cgit v1.1