* objcopy.c (copy_object): Do not issue a warning message when
encountering empty .gnu.build.attribute sections.
+2022-09-20 Nick Clifton <nickc@redhat.com>
+
+ * objcopy.c (copy_object): Do not issue a warning message when
+ encountering empty .gnu.build.attribute sections.
+
2022-09-14 Rupesh Potharla <Rupesh.Potharla@amd.com>
* testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend
bfd_size_type size = bfd_section_size (osec);
if (size == 0)
- {
- bfd_nonfatal_message (NULL, ibfd, osec,
- _("warning: note section is empty"));
- continue;
- }
+ /* This can happen, eg when stripping a binary for a second
+ time. See BZ 2121365 for an example. */
+ continue;
merged_note_section * merged = xmalloc (sizeof * merged);
merged->contents = NULL;