PR31999 strip [.gnu.build.attributes]: failed

PR 31999
	* objcopy.c (merge_gnu_build_notes): Always set *new_size.
This commit is contained in:
Alan Modra
2024-07-20 10:08:32 +09:30
parent f5036a1861
commit 964be70df7

View 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)
{