Bugzilla bug 493 - libbfd seg fault

Alan Modra amodra@bigpond.net.au
Wed Dec 12 18:43:00 GMT 2001


On Thu, Dec 13, 2001 at 12:59:47PM +1030, Alan Modra wrote:
> On Wed, Dec 12, 2001 at 09:04:37PM -0500, Niels Christiansen wrote:
> > 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.
> 
> Um, OK, set_default_bfd_target is a wrapper in bucomm.c.  Applying this
> patch:

It occurs to me that you might be trying to look at powerpc64 linux
kernels.  In that case, you'll need to have your libbfd compiled with
powerpc64-linux support.  eg. configured with --target=powerpc-linux
--enable-targets=powerpc64-linux

Alan



More information about the Binutils mailing list