I want to know, how to extract the symbolic information of the structure in the elf file by this ELFLib function?
For example if I have an embedded struct and variable like this:
typedef struct
{
unsigned int varA;
unsigned int varB;
}T_myStruct;
T_myStruct data;
I want the address and type of not only data, but preferably data.varA
and data.varB
a ELF file contains debug info, then the types of variables, structures, and great many other kinds of info can be extracted from that binary.Theoretically possible, but I don't know how to program the implementation under Windows
Can I get the address of a structure pointer, but don't know how to calculate the address offset of a structure variable?
Thanks
For example if I have an embedded struct and variable like this:
typedef struct
{
unsigned int varA;
unsigned int varB;
}T_myStruct;
T_myStruct data;
I want the address and type of not only data, but preferably data.varA
and data.varB
a ELF file contains debug info, then the types of variables, structures, and great many other kinds of info can be extracted from that binary.Theoretically possible, but I don't know how to program the implementation under Windows
Can I get the address of a structure pointer, but don't know how to calculate the address offset of a structure variable?
Thanks
The post was edited 2 times, last by lovecomputer ().