Robert Simpson wrote:
Pardon my ignorance about *nix, but what happens during this whole global
symbol mapping thing if two libraries both export the same function name?

generally the first one is picked, though there's variations between OS. the search order for first is fairly flexible depending on environment settings and other options. there are also strong and weak symbols, where the weak symbol is only picked if no library provides a strong one. some systems also support specifying that all calls to "foo" in a library refer to the "foo" in that library, and not any other, but any other library calling "foo" may land in a different symbol. depending on what you pass to dlopen/dlsym, you can usually find the symbol you want.


--
Ted Unangst             www.coverity.com             Coverity, Inc.

Reply via email to