binutils/
[deliverable/binutils-gdb.git] / binutils / objdump.c
index 5a2ea6ddf3703cc9421fd3a4f4bd16cdd54ad486..e5ee5d2b33b02472fc7afac4c5ea61a053caa97f 100644 (file)
@@ -52,6 +52,7 @@
 
 #include "sysdep.h"
 #include "bfd.h"
+#include "elf-bfd.h"
 #include "progress.h"
 #include "bucomm.h"
 #include "dwarf.h"
@@ -2186,6 +2187,12 @@ dump_dwarf (bfd *abfd)
 
   check_mach_o_dwarf (abfd);
 
+  if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
+    {
+      const struct elf_backend_data *bed = get_elf_backend_data (abfd);
+      init_dwarf_regnames (bed->elf_machine_code);
+    }
+
   bfd_map_over_sections (abfd, dump_dwarf_section, NULL);
 
   free_debug_memory ();
This page took 0.023335 seconds and 4 git commands to generate.