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-RFC 1/1] readelf: Don't warn on non-zero sh_info for PROGBITS


Signed-off-by: Francois H. Theron <francois.theron@netronome.com>
---
 binutils/ChangeLog | 3 +++
 binutils/readelf.c | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8b37aaeaac..6546321d4a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,6 @@
+2018-07-06  Francois H. Theron  <francois.theron@netronome.com>
+	* readelf.c: Accept non-zero sh_info for PROGBITS sections. 
+
 2018-07-05  Nick Clifton  <nickc@redhat.com>
 
 	* po/bg.po: Updated Bulgarian translation.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 1b50ba7631..30572584a6 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -6366,7 +6366,8 @@ process_section_headers (Filedata * filedata)
 
 	default:
 	  /* FIXME: Add support for target specific section types.  */
-	  if (section->sh_type == SHT_NOBITS)
+	  if (section->sh_type == SHT_NOBITS ||
+	      section->sh_type == SHT_PROGBITS)
 	    /* NOBITS section headers with non-zero sh_info fields can be
 	       created when a binary is stripped of everything but its debug
 	       information.  The stripped sections have their headers
-- 
2.17.0


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