Bugzilla bug 493 - libbfd seg fault
Niels Christiansen
nchr@us.ibm.com
Wed Dec 12 18:07:00 GMT 2001
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
More information about the Binutils
mailing list