[profile] Use -fPIC -shared in a test instead of -dynamiclib

This is more portable than -dynamiclib. Also, fix the path to an input
file that broke when the test was moved in r375315.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@375317 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed