patch shared lib with TLS entry
