Relativistic mean-field study of light nuclei near drip line