Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] I would like to know what library is used to programmatically read custom variable structure information in ELF files?

Status
Not open for further replies.

lovecomputer

Newbie
Joined
Nov 21, 2022
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
15
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 by c language

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 to get the address and type of not only data, but preferably data.varA and data.varB. I used segger ELFlib without success, and I was wondering if there was a more suitable library.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top