aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-07-20 10:08:32 +0930
committerAlan Modra <amodra@gmail.com>2024-07-20 10:11:25 +0930
commit964be70df76a830cc8d514f86dd44dd6e5bdc114 (patch)
treec7b7ded9a9c2985c145df203d40b51c8ac857bc1
parentf5036a1861f9e572cd3f4e179aaef11e8033642e (diff)
downloadgdb-964be70df76a830cc8d514f86dd44dd6e5bdc114.zip
gdb-964be70df76a830cc8d514f86dd44dd6e5bdc114.tar.gz
gdb-964be70df76a830cc8d514f86dd44dd6e5bdc114.tar.bz2
PR31999 strip [.gnu.build.attributes]: failed
PR 31999 * objcopy.c (merge_gnu_build_notes): Always set *new_size.
-rw-r--r--binutils/objcopy.c1
1 files changed, 1 insertions, 0 deletions
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)
{