In dwarf_getelf.c the function is defined as dwarf_get_elf while in libdw.h is exported as dwarf_getelf.
Thanks, I've fixed the upstream code to actually define and export dwarf_getelf as it claimed to.
This is fixed in 0.126.