Improve objcopy's note mergeing capabilities.
[binutils-gdb.git] / binutils / ChangeLog
index 356eb0592be507ee46abd1580f415aac82cf6b59..224ebeb04efb78dab56f29166cde33fd4a7f0603 100644 (file)
@@ -1,3 +1,116 @@
+2019-10-25  Nick Clifton  <nickc@redhat.com>
+
+       * objcopy.c (struct merged_note_section): New structure.  Used to
+       chain together details of mergeable note sections.
+       (is_merged_note_section): Rename to is_megreable_note_section and
+       return true for note sections that use GNU_BUILD_ATTRS_SECTION_NAME
+       as a prefix.
+       (num_bytes): Delete
+       (objcoopy_internal_note): Add padded_namesz field.
+       (DEBUG_MERGE): New macro.  Set to non-zero to enable debugging of
+       the note merging code.
+       (gap_exists): Rename to overlaps_or_adjoins and return TRUE for
+       overlapping notes or adjoining notes.
+       (contained_by, is_deleted_note, is_version_note)
+       (compare_gnu_build_notes, sort_gnu_build_notes): New functions.
+       (merge_gnu_build_notes):  Rework.  Sort notes into a mergeable
+       order first.  Merge them.  Then sort them into an ascending
+       address order before writing them out.
+       (copy_object): Handle more than one mergeable note section.
+       * testsuite/binutils-all/note-2-32.d: Update for new merging
+       behaviour.
+       * testsuite/binutils-all/note-2-32.s: Likewise.
+       * testsuite/binutils-all/note-2-64.d: Likewise.
+       * testsuite/binutils-all/note-2-64.s: Likewise.
+       * testsuite/binutils-all/note-3-32.d: Likewise.
+       * testsuite/binutils-all/note-3-32.s: Likewise.
+       * testsuite/binutils-all/note-3-64.d: Likewise.
+       * testsuite/binutils-all/note-3-64.s: Likewise.
+       * testsuite/binutils-all/note-4-32.d: Likewise.
+       * testsuite/binutils-all/note-4-32.s: Likewise.
+       * testsuite/binutils-all/note-4-64.d: Likewise.
+       * testsuite/binutils-all/note-4-64.s: Likewise.
+       * testsuite/binutils-all/note-6-32.s: New test source file.
+       * testsuite/binutils-all/note-6-64.s: New test source file.
+       * testsuite/binutils-all/note-6-32.d: New test driver file.
+       * testsuite/binutils-all/note-6-64.d: New test driver file.
+       * testsuite/binutils-all/objcopy.exp: Run the new test.
+
+2019-10-25  Alan Modra  <amodra@gmail.com>
+
+       * readelf.c (process_program_headers): Check PT_PHDR p_offset
+       as well as p_vaddr.  Use p_filesz, not p_memsz, in vaddr test.
+
+2019-10-21  Alan Modra  <amodra@gmail.com>
+
+       PR 452
+       PR 25104
+       * ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH.
+       * doc/binutils.texi (extract from archive): Mention
+       restrictions when extracting from archives with full paths.
+       (ar P): Update to current P support.
+       (ar -X32_64): Fix spelling.
+
+2019-10-14  Alan Modra  <amodra@gmail.com>
+
+       * objcopy.c (compare_section_lma): Correct comment.  Dereference
+       section pointer earlier and lose unnecessary const.  Style fixes.
+       Add final sort by id.
+
+2019-10-13  Nick Clifton  <nickc@redhat.com>
+
+       * README-how-to-make-a-release: Add a note to reset the
+       development flag back to true after making a point release.
+
+2019-10-12  Nick Clifton  <nickc@redhat.com>
+
+       * README-how-to-make-a-release: Tweak a few sections based on the
+       results of the 2.33.1 release.
+
+2019-10-11  Nick Clifton  <nickc@redhat.com>
+
+       * po/zh_TW.po: Updated Chinese (traditional) translation.
+
+2019-10-09  Alan Modra  <amodra@gmail.com>
+
+       PR 25079
+       * ar.c (decode_options): Don't try for command options if
+       write_armap or mri_mode is selected.
+
+2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * readelf.c (display_msp430_gnu_attribute): New.
+       (process_arch_specific): Use msp430 specific handler for GNU
+       attributes.
+
+2019-09-30  Nick Alcock  <nick.alcock@oracle.com>
+
+       * objdump.c (main): Fix tabdamage.
+       * readelf.c (CTF_DUMP): Likewise.
+       (options): Likewise.
+       (dump_section_as_ctf): Likewise.
+
+2019-08-03  Nick Alcock  <nick.alcock@oracle.com>
+
+       * objdump.c (dump_ctf): Use the default CTF archive member as the
+       parent even when no parent section is specified.
+       (dump_ctf_archive_member): Only import from the parent
+       if this is not the default ".ctf" member.
+
+2019-09-23  Nick Alcock  <nick.alcock@oracle.com>
+
+       * Makefile.am (LIBCTF): Mention the .la file.
+       (LIBCTF_NOBFD): New.
+       (readelf_DEPENDENCIES): Use it.
+       (readelf_LDADD): Likewise.
+       * Makefile.in: Regenerated.
+
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * readelf.c (dump_ctf_symtab_name): Give default value.
+       (dump_ctf_strtab_name): Likewise.
+       (dump_section_as_ctf): Allow for the null string.
+
 2019-07-08  Nick Alcock  <nick.alcock@oracle.com>
 
        * objdump.c (dump_ctf_archive_member): Dump the CTF header.