Skip to content

Is it possible to have libdwarf use an in-memory object file #282

@jeremy-rifkin

Description

@jeremy-rifkin

I'm looking at supporting JIT compilers in a library of mine which uses libdwarf. From compilers like LLVM I can get in-memory object files (an ELF or mach-o file that just lives in memory and I get a const char* and size_t for it).

I see there is a dwarf_object_init_b utility which can be used for in-memory dwarf but this seems to involve having lots of information about all of the internal structures of the object file, which I'd like to avoid having to parse myself.

Does libdwarf have an interface taking a const char* and size_t to an in-memory object file? If not, this would be very helpful to have.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions