This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] binutils: readelf: add missing newline to warning message


Committed as obvious:
vapier@vapier $ readelf -h corrupt.elf
ELF Header:
  ...
readelf: Error: Unable to seek to 0xffffffff00000dd4 for string table
readelf: Warning: possibly corrupt ELF header - it has a non-zero program header offset, but no program headersvapier@vapier $
---
 binutils/ChangeLog | 5 +++++
 binutils/readelf.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 21e1f84..20abfe6 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-21  Mike Frysinger  <vapier@gentoo.org>
+
+	* readelf.c (process_program_headers): Add newline to warning
+	message.
+
 2015-02-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
 
 	* readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
diff --git a/binutils/readelf.c b/binutils/readelf.c
index bfea37a..66b8f98 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4490,7 +4490,7 @@ process_program_headers (FILE * file)
       /* PR binutils/12467.  */
       if (elf_header.e_phoff != 0)
 	warn (_("possibly corrupt ELF header - it has a non-zero program"
-		" header offset, but no program headers"));
+		" header offset, but no program headers\n"));
       else if (do_segments)
 	printf (_("\nThere are no program headers in this file.\n"));
       return 0;
-- 
2.3.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]