This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RFC: Dumping DWARF info with objdump (Darwin/i386)
On Tue, Sep 13, 2005 at 11:28:13AM -0700, H. J. Lu wrote:
> On Wed, Sep 07, 2005 at 11:09:58AM -0700, H. J. Lu wrote:
> > DWARF is independent of ELF. Other formats can also use DWARF. But
> > we can only dump DWARF info with readelf. I am in the process to add
> > dumping DWARF to objdump and I'd like to use DWARF code in readelf.
> > This patch is a starting point.
> >
> > BTW, this patch depends on
> >
> > http://sourceware.org/ml/binutils/2005-09/msg00045.html
> >
> >
>
> Here is the updated patch.
>
I have patches to add "-W/--dwarf" to objdump. Since objdump uses bfd
to get relocated section contents, it works better on RELA .o files.
Otherthan that, there are no differences between "readelf -w" and
"objdump -W/--dwarf". I also have a patch to support "-W/--dwarf"
on Darwin/i386. Let me know if they should be in the GNU binutils.
Otherwise, I will keep them in the Linux binutils.
H.J.