(dladdr): Remove duplicate code.