Give a better warning when stack protection breaks linking.

Fix for 9948; patch from Benedikt Gollatz.