]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR31999 strip [.gnu.build.attributes]: failed
authorAlan Modra <amodra@gmail.com>
Sat, 20 Jul 2024 00:38:32 +0000 (10:08 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 20 Jul 2024 00:41:25 +0000 (10:11 +0930)
PR 31999
* objcopy.c (merge_gnu_build_notes): Always set *new_size.

binutils/objcopy.c

index 64033673a9e0a6a2b04b8178112844a3d6925cc3..24e31cc58052363a428322253ec51fb19f4ce013 100644 (file)
@@ -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)
     {