+2010-02-01 Nathan Sidwell <nathan@codesourcery.com>
+
+ * objcopy.c (copy_object): Set SEC_LINKER_CREATED when adding
+ sections.
+
2010-01-28 Nick Clifton <nickc@redhat.com>
PR 11225
}
else
{
- padd->section = bfd_make_section_with_flags (obfd, padd->name, flags);
+ /* We use LINKER_CREATED here so that the backend hooks
+ will create any special section type information,
+ instead of presuming we know what we're doing merely
+ because we set the flags. */
+ padd->section = bfd_make_section_with_flags
+ (obfd, padd->name, flags | SEC_LINKER_CREATED);
if (padd->section == NULL)
{
bfd_nonfatal_message (NULL, obfd, NULL,
+2010-02-01 Nathan Sidwell <nathan@codesourcery.com>
+
+ * binutils-all/note-1.d: New.
+ * binutils-all/objcopy.exp: Add it.
+
2010-01-30 Dave Korn <dave.korn.cygwin@gmail.com>
* binutils-all/windres/html.rc: Don't xfail x86_64-*-mingw*.
--- /dev/null
+#PROG: objcopy
+#readelf: -S --wide
+#objcopy: --add-section .note=$srcdir/note-1.d
+#name: add notes section
+#source: copytest.s
+
+There are .*
+
+Section Headers:
+#...
+ \[[ 0-9]*\] .note NOTE 0*0000000 0*...... 0*000... .*
+#...