* [PATCH] binutils: readelf: add missing newline to warning message
@ 2015-02-23 1:47 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2015-02-23 1:47 UTC (permalink / raw)
To: binutils
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-21 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-23 1:47 [PATCH] binutils: readelf: add missing newline to warning message Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).