Skip to content
Advertisement

Tag: dlsym

Why can the value of the symbol returned by dlsym() be null?

In Linux. Per the dlsym(3) Linux man page, Why is this, when can a symbol (for a function, specifically) be actually NULL? I am reviewing code and found a piece using dlerror to clean first, dlsym next, and dlerror to check for errors. But it does not check the resulting function from being null before calling it: dlerror(); a_func_name =

Advertisement