Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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