Skip to content
Snippets Groups Projects
Commit cd1fd52b authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

Document the CAPSULE_DEBUG flags

parent 3ae3443f
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
If you wish to debug the library loading & symbol proxying process
libcapsule exposes a lot of detail depending on the contents of the
CAPSULE_DEBUG environment variable.
CAPSULE_DEBUG is a comma-or-space separated variable, and currently
understand the following debug flags:
path : path manipulation and translation
search : searching for DSOs
ldcache : loading/processing the ld cache
capsule : setting up the proxy capsule
mprotect: subverting mprotect (for RELRO linking)
wrappers: function wrappers installed in the capsule
reloc : patching capsule symbols into external DSOs
elf : detailed ELF introspection logging
At this point gdb does not yet know about dlmopen()ed DSOs and their
symbols, so debugging a libcapsule proxy library with gdb isn't very
convenient. It's on the list of things to fix.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment