+2015-10-15 Alan Modra <amodra@gmail.com>
+
+ * elf32-v850.c (v850_elf_copy_private_bfd_data): Remove assertion
+ that input and output .note.renesas sections are same size.
+ Instead, only copy input to output if they are.
+
2015-10-15 Riku Voipio <riku.voipio@iki.fi>
PR ld/19123
if ((onotes = bfd_get_section_by_name (obfd, V850_NOTE_SECNAME)) == NULL)
return TRUE;
- if ((inotes = bfd_get_section_by_name (ibfd, V850_NOTE_SECNAME)) != NULL)
+ if ((inotes = bfd_get_section_by_name (ibfd, V850_NOTE_SECNAME)) == NULL)
+ return TRUE;
+
+ if (bfd_section_size (ibfd, inotes) == bfd_section_size (obfd, onotes))
{
bfd_byte * icont;
bfd_byte * ocont;
- BFD_ASSERT (bfd_section_size (ibfd, inotes) == bfd_section_size (obfd, onotes));
-
if ((icont = elf_section_data (inotes)->this_hdr.contents) == NULL)
BFD_ASSERT (bfd_malloc_and_get_section (ibfd, inotes, & icont));
+2015-10-15 Alan Modra <amodra@gmail.com>
+
+ * objcopy.c (copy_object): Don't omit bfd_copy_private_bfd_data
+ call when extract_symbol.
+
2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
* od-elf32_avr.c (elf32_avr_dump_avr_prop): Fix printing of align
}
}
- /* Do not copy backend data if --extract-symbol is passed; anything
- that needs to look at the section contents will fail. */
- if (extract_symbol)
- return TRUE;
-
/* Allow the BFD backend to copy any private data it understands
from the input BFD to the output BFD. This is done last to
permit the routine to look at the filtered symbol table, which is