In case people aren't aware of it, Ulrich Drepper
has a short paper on writing DSO's which is worth reading...
http://people.redhat.com/drepper/dsohowto.pdf
in which his test for insuring position independent code is...
readelf -d binary | grep TEXTREL
Jack