components/binutils/patches/readelf.c.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Thu, 05 Jun 2014 14:04:04 -0700
changeset 1936 185320167a36
parent 1123 cb43164c5dd1
permissions -rw-r--r--
18908082 some apache2 modules don't build on 49

--- binutils-2.23.1/binutils/readelf.c	2012-11-05 08:27:35.000000000 -0800
+++ binutils-2.23.1/binutils/readelf.c	2012-12-19 08:07:54.220639084 -0800
@@ -7284,9 +7284,15 @@
   if (!do_unwind)
     return;
 
+  /* why do some developers insist on returning from void */
   for (i = 0; handlers[i].handler != NULL; i++)
+  {
     if (elf_header.e_machine == handlers[i].machtype)
-      return handlers[i].handler (file);
+    {
+      handlers[i].handler (file);
+      return;
+    }
+  }
 
   printf (_("\nThe decoding of unwind sections for machine type %s is not currently supported.\n"),
 	  get_machine_name (elf_header.e_machine));