This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Fix objdump -R internal error on prelinked binaries
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Julien LEMOINE <speedblue at debian dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 19 Apr 2003 21:19:21 +0930
- Subject: Re: [PATCH] Fix objdump -R internal error on prelinked binaries
- References: <20030418235047.GG4912@trinity.all-3rd.net>
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