Re: "File has no CTF section."

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Tue, Mar 25, 2008 at 12:24:14PM -0500, Florin Iucha escreveu:
> Arnaldo,
> 
> Thanks for the quick reply!
> 
> On Tue, Mar 25, 2008 at 01:41:03PM -0300, Arnaldo Carvalho de Melo wrote:
> > > I have three object files: one is 'dwarves.o' from the pahole
> > > distribution, compiled with 'gcc -g'.  Another is 'foobar.o' from my
> > > own embedded application, compiled with the same compiler, on the same
> > > box [1].  The third object file is 'foobar.o' compiled with some
> > > version of compiler (Metrowerks?) for the embedded platform that we use.
> > > 
> > > If I use 'objdump -W' on all three files, I get heaps of information,
> > > including the structure definitions and other stuff.  Good.
> > 
> > can you try with:
> > 
> > # binutils
> > readelf -w i build/pahole
> > 
> > # elfutils
> > eu-readelf -w i build/pahole
> 
> Yup.  I get the same (or very similar) information.
> 
> > > The most puzzling thing is that two object files, compiled with the
> > > same compiler on the same machine have different enough DWARF data
> > > that one works with pahole and one doesn't.
> > > 
> > > What can I do to follow through with this?  Contact the elfutils
> > > maintainers?
> > 
> > Possibly, but can you make these two object files available somewhere?
> > I'd like to take a look...
> 
> See the attached file.  If you just compile it with 'gcc -g -c hello.c',
> pahole works fine on the resulting object file.  If at line 17 you change
> '#if 0' to '#if 1', pahole will complain about the lack of CTF (sorry,
> I didn't have time to pull your updates).

ACK, reproduced here, will investigate, strange indeed.

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux