+2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
+
+ * elf32-v850.c (v850_elf_copy_notes): New function, factored out
+ from...
+ (v850_elf_copy_private_bfd_data): ... here. Call the new
+ function and `_bfd_elf_copy_private_bfd_data'.
+
2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/20093
return TRUE;
}
-/* Copy backend specific data from one object module to another. */
+/* Copy a v850 note section from one object module to another. */
-static bfd_boolean
-v850_elf_copy_private_bfd_data (bfd * ibfd, bfd * obfd)
+static void
+v850_elf_copy_notes (bfd *ibfd, bfd *obfd)
{
asection * onotes;
asection * inotes;
skip the merge. The normal input to output section
copying will take care of everythng for us. */
if ((onotes = bfd_get_section_by_name (obfd, V850_NOTE_SECNAME)) == NULL)
- return TRUE;
+ return;
if ((inotes = bfd_get_section_by_name (ibfd, V850_NOTE_SECNAME)) == NULL)
- return TRUE;
+ return;
if (bfd_section_size (ibfd, inotes) == bfd_section_size (obfd, onotes))
{
/* Copy/overwrite notes from the input to the output. */
memcpy (ocont, icont, bfd_section_size (obfd, onotes));
}
+}
- return TRUE;
+/* Copy backend specific data from one object module to another. */
+
+static bfd_boolean
+v850_elf_copy_private_bfd_data (bfd *ibfd, bfd *obfd)
+{
+ v850_elf_copy_notes (ibfd, obfd);
+ return _bfd_elf_copy_private_bfd_data (ibfd, obfd);
}
#define bfd_elf32_bfd_copy_private_bfd_data v850_elf_copy_private_bfd_data
+2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
+ test for the V850.
+
2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
* readelf.c (print_mips_ases): Add DSPR3.
run_dump_test "strip-9"
run_dump_test "strip-12"
# Non-EABI ARM targets will set OSABI to ARM
- # The V850 sets the OSABI to UNIX - System V
if { ![istarget "*-*-hpux*"]
&& ![istarget "msp*-*-*"]
&& ![istarget "visium-*-*"]
- && ![istarget "v850*-*-*"]
&& !([istarget "arm*-*-*"] && ![istarget "arm-*-*eabi*"])} {
run_dump_test "strip-10"
}