public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: ELF files...
@ 2000-06-29 15:56 Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2000-06-29 15:56 UTC (permalink / raw)
  To: robert.gustin; +Cc: binutils

Hi Robert,

:   Maybe you can help ( hell, I hope you're still there at all!!! ).
: 
:  I need to break out an ELF file - ***including***  the data TYPES stored in
: same.
: 
:  I went through the ELF spec and wrote a parser that breaks out the ELF header,
: program header,
:  sections (with their associated strings), the symbols (with their associated
: section names), and
:  relocation info.  What I CAN'T see, are the references - links, pointers,
: indexes - anything - to the
:  stored type-names - which I can plainly see in my hex editor.
: 
:  I guess the spec may have this - but I don't see it!

I think that you might be confusing the ELF spec with the DWARF2 spec
here.  The ELF spec does not really have anything to say about types
(at least not those used by high level langauges), whereas the DWARF2
spec does.  Since ELF files typically use DWARF2 to hold their debug
information, it is probably this information that you are seeing in
your hex dumps.

Yopu may like to take a look at the sources for the READELF program
which is available as part of the GNU Binutils release.  this program
can displayt he contents of an ELF format file, including any DWARF2
format information inside it.  You can find the sources for readelf
at:

  http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/binutils/?cvsroot=src

Cheers
	Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

* ELF files...
@ 2000-06-28  9:57 robert.gustin
  0 siblings, 0 replies; 2+ messages in thread
From: robert.gustin @ 2000-06-28  9:57 UTC (permalink / raw)
  To: binutils

Dear Binutils,    :)


  Maybe you can help ( hell, I hope you're still there at all!!! ).


 I need to break out an ELF file - ***including***  the data TYPES stored in
same.

 I went through the ELF spec and wrote a parser that breaks out the ELF header,
program header,
 sections (with their associated strings), the symbols (with their associated
section names), and
 relocation info.  What I CAN'T see, are the references - links, pointers,
indexes - anything - to the
 stored type-names - which I can plainly see in my hex editor.

 I guess the spec may have this - but I don't see it!

 Any ideas?


 Thanks in advance,

 Bob Gustin


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-29 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-29 15:56 ELF files Nick Clifton
  -- strict thread matches above, loose matches on Subject: below --
2000-06-28  9:57 robert.gustin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).