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


I looked at the local objdump and found the string "ia64-redhat-linux-gnu",
which I tried with the same result.  However, objdump itself works fine.  I
really suspect this is a bug in bfd_canonicalize_symtab() on IA64 just like
the seg fault points to.

Niels



                                                                                                       
                    Alan Modra                                                                         
                    <amodra@bigpon       To:     Niels Christiansen/Austin/IBM@IBMUS,                  
                    d.net.au>             binutils@sources.redhat.com                                  
                                         cc:                                                           
                    12/12/2001           Subject:     Re: Bugzilla bug 493 - libbfd seg fault          
                    08:43 PM                                                                           
                                                                                                       
                                                                                                       



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]