binutils: CTF support for objdump and readelf
[deliverable/binutils-gdb.git] / binutils / ChangeLog
index 18ec1826c16997308f6d8ac752f9fa9517219cc0..b66f0b29d3e764386b8893c3e5c5b6e94b003080 100644 (file)
@@ -1,3 +1,50 @@
+2019-05-28  Nick Alcock  <nick.alcock@oracle.com>
+
+       * objdump.c (ctf-api.h): New include.
+       (dump_ctf_section_info): New variable.
+       (dump_ctf_section_name): Likewise.
+       (usage): Describe new options.
+       (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
+       (main): Use them to add --ctf and --ctf-parent.
+       (read_section_stabs): Add new parameter, entsize_ptr.
+       (find_stabs_section): Adjust accordingly.
+       (make_ctfsect): New.
+       (dump_ctf_indent_lines): New.
+       (dump_ctf_archive_member): New.
+       (dump_ctf): New.
+       (dump_bfd): Call it.  Free resources afterwards.
+       * readelf.c (ctf-api.h): New include.
+       (CTF_DUMP): New.
+       (static bfd_boolean do_ctf): Likewise.
+       (dump_ctf_parent_name): Likewise.
+       (dump_ctf_symtab_name): Likewise.
+       (dump_ctf_strtab_name): Likewise.
+       (OPTION_CTF_DUMP): Likewise.
+       (OPTION_CTF_PARENT): Likewise.
+       (OPTION_CTF_SYMBOLS): Likewise.
+       (OPTION_CTF_STRINGS): Likewise.
+       (options): Add them.
+       (usage): Likewise.
+       (parse_args): Handle the new options, requesting CTF_DUMP.
+       (process_section_contents): Handle CTF_DUMP.
+       (shdr_to_ctf_sect): New.
+       (dump_ctf_indent_lines): New.
+       (dump_section_as_ctf): New.
+       (main): Free resources.
+       * Makefile.am (LIBCTF): New variable.
+       (objdump_DEPENDENCIES): Use it.
+       (readelf_DEPENDENCIES): Likewise.
+       (objdump_LDADD): Likewise.
+       (readelf_LDADD): Likewise.
+       * aclocal.m4: Regenerated.
+       * Makefile.in: Likewise.
+
+       * doc/binutils.texi (objdump): Document the new options.
+       (readelf): Likewise.
+       * doc/ctf.options.texi: New.
+       * doc/Makefile.in: Regenerated.
+       * NEWS: Mention the new feature.
+
 2019-05-27  Alan Modra  <amodra@gmail.com>
 
        * readelf.c (process_section_groups): Continue processing groups
This page took 0.025099 seconds and 4 git commands to generate.