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 2/3] readelf: Make version section index sum unsigned


Make `isum' unsigned like data it is calculated from.

	binutils/
	* readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
	`isum' unsigned.
	<SHT_GNU_verneed>: Likewise.
---
 OK to apply?

  Maciej

binutils-readelf-verdef-isum-unsigned.diff
Index: binutils/binutils/readelf.c
===================================================================
--- binutils.orig/binutils/readelf.c	2017-02-23 17:02:03.252556979 +0000
+++ binutils/binutils/readelf.c	2017-02-23 17:45:01.969909280 +0000
@@ -10024,8 +10024,8 @@ process_version_sections (FILE * file)
 		Elf_Internal_Verdef ent;
 		Elf_External_Verdaux * eaux;
 		Elf_Internal_Verdaux aux;
+		unsigned int isum;
 		int j;
-		int isum;
 
 		/* Check for very large indices.  */
 		if (idx > (size_t) (endbuf - (char *) edefs))
@@ -10141,8 +10141,8 @@ process_version_sections (FILE * file)
 	      {
 		Elf_External_Verneed * entry;
 		Elf_Internal_Verneed ent;
+		unsigned int isum;
 		int j;
-		int isum;
 		char * vstart;
 
 		if (idx > (size_t) (endbuf - (char *) eneed))


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