diff options
author | Alan Modra <amodra@gmail.com> | 2024-07-20 10:08:32 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-07-20 10:11:25 +0930 |
commit | 964be70df76a830cc8d514f86dd44dd6e5bdc114 (patch) | |
tree | c7b7ded9a9c2985c145df203d40b51c8ac857bc1 | |
parent | f5036a1861f9e572cd3f4e179aaef11e8033642e (diff) | |
download | gdb-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.c | 1 |
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) { |