This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Bugzilla bug 493 - libbfd seg fault
- From: "Niels Christiansen" <nchr at us dot ibm dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 12 Dec 2001 21:04:37 -0500
- Subject: Re: Bugzilla bug 493 - libbfd seg fault
Alan,
This code works just fine on Linux IA32 and AIX PPC. Adding bfd_init()
makes no difference. set_default_bfd_target() seems to be a function used
only by binutils when you want to look at binaries from a different
platform and is unresolved if I try to use it, so obviously not in the
library.
Now what?
Niels
Alan Modra
<amodra@bigpon To: Niels Christiansen/Austin/IBM@IBMUS
d.net.au> cc: binutils@sources.redhat.com
Subject: Re: Bugzilla bug 493 - libbfd seg fault
12/12/2001
05:50 PM
On Wed, Dec 12, 2001 at 09:06:39AM -0500, Niels Christiansen wrote:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x20000000000be571 in bfd_elf64_slurp_symbol_table ()
You haven't called bfd_init, or set_default_bfd_target. Take a look at
one of the existing binutils utilities, eg. binutils/objdump.c, for
an example of what needs to be done.
Alan