RE: ELF ???

Yogesh Bansal (yogesh.bansal@tatainfotech.com)
Tue, 11 May 1999 13:41:19 +0530


> > Is there any way to get the variable type and size of fields of a
> > structure from binary file, symbol table etc.?
>
> I think with file produce by gcc with debugging (dwarf?) it should be
> possible, as debuggers need to do this, but probably not otherwise,
> symbols on their own don't contain enough information to determine
> types and various other constraints.
>
I agree. Infact I got this idea of using struct info while using gdb and
verifying field values in client program.
But dont have exact details of how to get this info.

In going through octal dump i found table description at end of executable.

yogi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/