This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bugzilla bug 493 - libbfd seg fault


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]