[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: er
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device |
Date: |
Sat, 20 Jul 2024 00:36:44 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31999
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Alan Modra from comment #1)
> Ouch, missing assignment to *new_size in merge_gnu_build_notes in the case
> where new size is the same as original size?
Tried:
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 64033673a9e..c2dc6e11b23 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -2609,6 +2609,8 @@ merge_gnu_build_notes (bfd * abfd,
*new_size = nsize;
memcpy (contents, new_contents, nsize);
}
+ else
+ *new_size = size;
free (new_contents);
done:
But it didn't work. Working on a testcase first.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/31999] New: [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device, hjl.tools at gmail dot com, 2024/07/19
- [Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device, amodra at gmail dot com, 2024/07/19
- [Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device,
hjl.tools at gmail dot com <=
- [Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device, cvs-commit at gcc dot gnu.org, 2024/07/19
- [Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device, amodra at gmail dot com, 2024/07/19
- [Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device, cvs-commit at gcc dot gnu.org, 2024/07/19
- [Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device, hjl.tools at gmail dot com, 2024/07/19
- [Bug binutils/31999] [2.43 Regression] strip [.gnu.build.attributes]: error: failed to copy merged notes into output: No space left on device, cvs-commit at gcc dot gnu.org, 2024/07/20