The API for this library is deliberately different to the GPL'd libdwarf to avoid licensing problems.