[PATCH 4/4] Move the shdr check from readelf to debugscn_p()