The hack of using a plt address as the address of an undefined function only works in executables. Don't try it with shared libraries. llvm-svn: 262642