Hello NXP experts:
I've implemented a ELF file parser for MPC5642 ELF file generated by S32 DS.
the TIS (Tool Interface Standard) ELF spec V1.2 is my reference.
But my issue is:
For a struct type global variable or an array, only the start address can be parsed out from the ELF symbol section . The address of its member is not found in symbol section.
for example below is a struct:
typedef struct Ccp_Type
{
uint8_t Cro[8];/*command request object*/
uint8_t Crm[8]; /* CRM Command Return Message buffer */
boolean HasNewCro;
boolean IsInitialized;
uint8_t Ccp_Session_SM;
uint8_t SendStatus;
uint32_t MTA[CCP_MAX_MTA]; /* Memory Transfer Address */
}Ccp_Type;
the global variable is defined as:Ccp_Type ccp;
I can't get the address of its member e.g. ccp.Session_SM
Only address of the struct type global variable can be parsed out.
Could you please provide a document to explain ELF format generated by S32 Design Studio?
Or some hint about how to find the member's address?
Vector tool ASAP2 editor can parse out the struct type variable member address like below:

PS:
the map file , elf file and ELF spec are attached.
thanks and BR
YiChuan