This is the mail archive of the binutils@sources.redhat.com 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]

Re: [PATCH] Fix objdump -R internal error on prelinked binaries


On Sat, Apr 19, 2003 at 01:50:48AM +0200, Julien LEMOINE wrote:
> diff -bBdNrw -U5 binutils-2.13.90.0.18.orig/bfd/elfcode.h binutils-2.13.90.0.18/bfd/elfcode.h
> --- binutils-2.13.90.0.18.orig/bfd/elfcode.h	2002-12-16 21:22:52.000000000 +0100
> +++ binutils-2.13.90.0.18/bfd/elfcode.h	2003-04-16 21:53:08.000000000 +0200
> @@ -1363,13 +1363,13 @@
>  	    relent->sym_ptr_ptr = s->section->symbol_ptr_ptr;
>  	}
>  
>        relent->addend = rela.r_addend;
>  
> -      if (entsize == sizeof (Elf_External_Rela))
> -	(*ebd->elf_info_to_howto) (abfd, relent, &rela);
> -      else
> +      //if (entsize == sizeof (Elf_External_Rela))
> +      //  (*ebd->elf_info_to_howto) (abfd, relent, &rela);
> +      //else
>  	(*ebd->elf_info_to_howto_rel) (abfd, relent, &rela);
>      }
>  
>    if (allocated != NULL)
>      free (allocated);

This will break all RELA targets.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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