Analytical solution of the relativistic Coulomb problem with a hard core interaction for a one-dimensional spinless Salpeter equation