While elf_hash_lookup correctly skips undefined symbols, gnu_hash_lookup was not, causing it to claim to find symbols with addresses at the library base.
Tested on drcachesim -record_heap running /bin/ls where before the fix it claimed "malloc" was at the module base.
Fixes: #4152 (closed)