This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Objdump crash on prelinked ARM binaries
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 5 Jun 2003 11:36:29 -0400
- Subject: Re: Objdump crash on prelinked ARM binaries
- References: <20030605134709.GA30351@nevyn.them.org>
On Thu, Jun 05, 2003 at 09:47:09AM -0400, Daniel Jacobowitz wrote:
> arm-linux targets only provide elf_info_to_howto_rel. Then, when objdump
> finds Rela relocations in a prelinked object file, it dereferences a NULL
> pointer trying to call ebd->elf_info_to_howto. Will it break anything to
> always provide both elf_info_to_howto functions?
It doesn't appear to break anything. Is this OK?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-06-05 Daniel Jacobowitz <drow@mvista.com>
* elfarm-nabi.c (elf_info_howto_rel): Define to
elf32_arm_info_to_howto.
Index: elfarm-nabi.c
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/bfd/elfarm-nabi.c,v
retrieving revision 1.17
diff -u -p -r1.17 elfarm-nabi.c
--- elfarm-nabi.c 30 Nov 2002 08:39:39 -0000 1.17
+++ elfarm-nabi.c 5 Jun 2003 14:57:29 -0000
@@ -34,7 +34,7 @@
#define TARGET_BIG_SYM bfd_elf32_bigarm_vec
#define TARGET_BIG_NAME "elf32-bigarm"
-#define elf_info_to_howto 0
+#define elf_info_to_howto elf32_arm_info_to_howto
#define elf_info_to_howto_rel elf32_arm_info_to_howto
#define ARM_ELF_ABI_VERSION 0