binutils: Make DWARF register name lookup be via a function pointer
[deliverable/binutils-gdb.git] / binutils / ChangeLog
index 4fabf0cb063ed5ee5bf54d6ada8410ce6506ebd5..9aace1337f4d6f61d902f0660b98e0c75502662a 100644 (file)
@@ -1,3 +1,94 @@
+2019-11-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf.c (typedef dwarf_regname_lookup_ftype): New typedef.
+       (dwarf_regnames_lookup_func): New static global.
+       (init_dwarf_regnames_i386): Set dwarf_regnames_lookup_func.
+       (init_dwarf_regnames_iamcu): Likewise.
+       (init_dwarf_regnames_x86_64): Likewise.
+       (init_dwarf_regnames_aarch64): Likewise.
+       (init_dwarf_regnames_s390): Likewise.
+       (init_dwarf_regnames_riscv): Likewise.
+       (init_dwarf_regnames_by_elf_machine_code): Reset
+       dwarf_regnames_lookup_func to NULL.
+       (init_dwarf_regnames_by_bfd_arch_and_mach): Likewise.
+       (regname_internal_by_table_only): New function.
+       (regname): Make use of dwarf_regnames_lookup_func.
+
+2019-11-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf.c (init_dwarf_regnames_i386): Make static.
+       (init_dwarf_regnames_iamcu): Make static.
+       (init_dwarf_regnames_x86_64): Make static.
+       (init_dwarf_regnames_aarch64): Make static.
+       (init_dwarf_regnames_s390): Make static.
+       (init_dwarf_regnames_riscv): Make static.
+       * dwarf.h (init_dwarf_regnames_i386): Delete declaration.
+       (init_dwarf_regnames_iamcu): Delete declaration.
+       (init_dwarf_regnames_x86_64): Delete declaration.
+       (init_dwarf_regnames_aarch64): Delete declaration.
+       (init_dwarf_regnames_s390): Delete declaration.
+       (init_dwarf_regnames_riscv): Delete declaration.
+
+2019-11-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): New
+       function.
+       * dwarf.h (init_dwarf_regnames_by_bfd_arch_and_mach): Declare.
+       * objdump.c (dump_dwarf): Call new function instead of calling
+       specific initialization routines.  Restrucure so that eh_addr_size
+       is still calculated correctly.
+
+2019-11-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf.c (init_dwarf_regnames): Renamed to...
+       (init_dwarf_regnames_by_elf_machine_code): ...this.
+       * dwarf.h (init_dwarf_regnames): Renamed to...
+       (init_dwarf_regnames_by_elf_machine_code): ...this.
+       * readelf.c (process_file_header): Update call to use new name.
+
+2019-11-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf.c (frame_need_space): Compare dwarf_regnames_count against
+       0, and only warn about large numbers of registers if the number is
+       more than the dwarf_regnames_count.
+
+2019-11-25  Christian Eggers  <ceggers@gmx.de>
+
+       * objdump.c (disassemble_data): Provide section parameter to
+       bfd_octets_per_byte.
+       (dump_section): likewise
+       (dump_section_header): likewise. Show SEC_ELF_OCTETS flag if set.
+
+2019-11-21  Alan Modra  <amodra@gmail.com>
+
+       PR 273
+       * size.c (sysv_internal_sizer, sysv_internal_printer): Exclude
+       sections with no flag bits set.
+       * testsuite/binutils-all/size.exp: Allow $CODE$ as a text section.
+
+2019-11-21  Nick Clifton  <nickc@redhat.com>
+
+       * objcopy.c (merge_gnu_build_notes): Allow for the possibility
+       that the new notes might actually be larger than the original
+       notes.
+
+2019-11-21  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/lib/binutils-common.exp (is_pecoff_format): Rewrite
+       with positive logic and add more target triples.
+
+2019-11-19  Alan Modra  <amodra@gmail.com>
+
+       PR 24499
+       * objcopy.c (copy_file): Ignore --add-gnu-debuglink for archives.
+
+2019-11-19  Alan Modra  <amodra@gmail.com>
+
+       PR 24968
+       * objcopy.c (copy_object): For ELF output and non-ELF input without
+       arch, take arch from output file if not given by -B.  Don't
+       bfd_get_arch_info when we already have iarch.
+
 2019-11-19  Alan Modra  <amodra@gmail.com>
 
        PR 25191
This page took 0.025051 seconds and 4 git commands to generate.