st: binary endogenous variable as rhs in OLS regression models

I searched both FAQ and Stata listserv, but could find threads about
estimating a regression with a binary endogenous rhs variable. I think it's
not about selection and because it's binary, so I cannot use heckman or
ivreg. Appreciate any ideas.