How would the stock market work without the state?

Since the only stocks that are traded on the stock market are those of corporations and under anarcho-capitalism a corporation would not exist how would a stock market work under those circumstances? Would there or could there even be a stock market?

Well, I don’t see why companies couldn’t offer shares of ownership under capitalism. Those companies couldn’t provide the legal shield that modern corporations do, of course.