asan: readelf: use after free in process_archive
[deliverable/binutils-gdb.git] / binutils / ChangeLog
index 6db2be3262c3cee85c3817fb48255dc6cf5d899d..13d9c3e0576a967358ff5dfdf085120aaf2c6759 100644 (file)
@@ -1,3 +1,44 @@
+2020-06-27  Alan Modra  <amodra@gmail.com>
+
+       * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
+       after freeing.
+       (release_archive): Set fields of arch to NULL after freeing.
+
+2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
+
+       * readelf.c (dump_section_as_ctf): Support .ctf archives using
+       ctf_arc_bufopen.  Automatically load the .ctf member of such
+       archives as the parent of all other members, unless specifically
+       overridden via --ctf-parent.  Split out dumping code into...
+       (dump_ctf_archive_member): ... here, as in objdump, and call
+       it once per archive member.
+       (dump_ctf_indent_lines): Code style fix.
+
+2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
+
+       * configure.ac [--enable-libctf]: New, default yes.
+       Set ENABLE_LIBCTF accordingly.
+       * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * Makefile.in: Regenerate.
+       * aclocal.m4: Regenerate.
+       * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
+       (option_values): Likewise.
+       (long_options): Likewise.
+       (main): Likewise.
+       (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
+       (make_ctfsect): Likewise.
+       (dump_ctf_archive_member): Likewise.
+       (dump_ctf) [ENABLE_LIBCTF]: Likewise.
+       (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
+       * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
+       (usage): Likewise.
+       (process_section_contents): Likewise.
+       (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
+       (dump_ctf_indent_lines): Likewise.
+       (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
+
 2020-06-26  Jan Beulich  <jbeulich@suse.com>
 
        * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
This page took 0.022609 seconds and 4 git commands to generate.