]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Better spacing in objdump output for relocation sections.
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Feb 2009 05:31:26 +0000 (21:31 -0800)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Feb 2009 05:31:26 +0000 (21:31 -0800)
src/ChangeLog
src/objdump.c

index c7ab78f406ff5654a59ef6e1995a9665c349159d..14f4f27040f5b14d8309c86f2c9232cd5b4b93e6 100644 (file)
@@ -3,6 +3,7 @@
        * objdump.c (show_relocs_rel, show_relocs_rela): Split common parts
        into ...
        (show_relocs_x): ...here.  New function.
+       (show_relocs): Better spacing in output.
 
        * objdump.c (show_relocs_rela): Show offsets as signed values.
 
index 4d8595c027ba12f72c8f42cfcdce580a2b1a2d81..99e42d2b734ebfdea5bb80e93c580cf28fd9dc06 100644 (file)
@@ -508,7 +508,7 @@ show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx)
                                                          shdr->sh_info),
                                              &destshdr_mem);
 
-         printf (gettext ("\n\nRELOCATION RECORDS FOR [%s]:\n"
+         printf (gettext ("\nRELOCATION RECORDS FOR [%s]:\n"
                           "%-*s TYPE                 VALUE\n"),
                  elf_strptr (ebl->elf, shstrndx, destshdr->sh_name),
                  elfclass == ELFCLASS32 ? 8 : 16, gettext ("OFFSET"));
@@ -548,11 +548,11 @@ show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx)
          else
            show_relocs_rela (ebl, shdr, data, symdata, xndxdata,
                              symshdr->sh_link, shstrndx);
+
+         fputs ("\n", stdout);
        }
     }
 
-  fputs_unlocked ("\n\n", stdout);
-
   return 0;
 }