This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: objdump, 64-bit objects and Solaris kernel modules
- From: Nick Clifton <nickc at redhat dot com>
- To: Steve Madsen <madsen at tadpole dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 08 Feb 2003 09:34:37 +0000
- Subject: Re: objdump, 64-bit objects and Solaris kernel modules
- References: <3E441A58.70201@tadpole.com>
Hi Steve,
> I am using Sun's cc: Forte Developer 7 C 5.4 2002/03/09 and binutils
> 2.11.2 (from sunfreeware.com).
First step - download the latest binutils release (2.13.2) or the
latest CVS sources. It is possible that the problem has already been
fixed.
> I'm willing to help debug this problem, but I'll need some pointers
> on where to start.
Have a look at binutils/objdump.c:show_line(). This is the function
that should display the source lines. The problem, however is most
likely to be with the function: bfd_find_nearest_line(). This is
vectored function whoes actual code depends upon the target you are
using, and the file formats and debug formats that it uses. I do not
know which debug format the Forte Developer package uses, but it is
probably generating ELF format binaries using either the DWARF or
STABS debug formats. So have a look at
bfd/elf.c:_bfd_elf_find_nearest_line() and follow the code from there.
Cheers
Nick