components/binutils/patches/readelf.c.patch
branchs11-update
changeset 2493 9911278899a3
equal deleted inserted replaced
2492:9052be6e07e4 2493:9911278899a3
       
     1 --- binutils-2.23.1/binutils/readelf.c	2012-11-05 08:27:35.000000000 -0800
       
     2 +++ binutils-2.23.1/binutils/readelf.c	2012-12-19 08:07:54.220639084 -0800
       
     3 @@ -7284,9 +7284,15 @@
       
     4    if (!do_unwind)
       
     5      return;
       
     6  
       
     7 +  /* why do some developers insist on returning from void */
       
     8    for (i = 0; handlers[i].handler != NULL; i++)
       
     9 +  {
       
    10      if (elf_header.e_machine == handlers[i].machtype)
       
    11 -      return handlers[i].handler (file);
       
    12 +    {
       
    13 +      handlers[i].handler (file);
       
    14 +      return;
       
    15 +    }
       
    16 +  }
       
    17  
       
    18    printf (_("\nThe decoding of unwind sections for machine type %s is not currently supported.\n"),
       
    19  	  get_machine_name (elf_header.e_machine));