From: H.J. Lu Date: Fri, 18 Feb 2005 15:58:45 +0000 (+0000) Subject: 2005-02-18 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=904c75ac4f1f245639601fa4f62fe95579ad6b59;p=binutils-gdb.git 2005-02-18 H.J. Lu * readelf.c (display_debug_loc): Print out offset for end of list. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 72ed1fe9d9d..12837ea5376 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2005-02-18 H.J. Lu + + * readelf.c (display_debug_loc): Print out offset for end of + list. + 2005-02-18 Joseph S. Myers * Makefile.am (TOOL_PROGS): Add objdump. diff --git a/binutils/readelf.c b/binutils/readelf.c index 24dbacf2a02..e607e0f72d3 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -9490,7 +9490,10 @@ display_debug_loc (Elf_Internal_Shdr *section, start += pointer_size; if (begin == 0 && end == 0) - break; + { + printf (_(" %8.8lx \n"), offset); + break; + } /* Check base address specifiers. */ if (begin == -1UL && end != -1UL) @@ -9524,8 +9527,6 @@ display_debug_loc (Elf_Internal_Shdr *section, start += length; } - - fputs (_(" \n"), stdout); } } return 1;