This is perfectly normal. When you've been making yourself sick, you stop food moving through your digestive system. But this means that the waste thats already in your system waiting to be secreted doesn't get.. "pushed" through the digestive system, to be blunt. So it just kind of.. sits there. Because its getting to be older and older, it gets firmer and eventually very hard because a lot of water is absorbed from the waste over time. This makes it harder to be pushed out of your system when you start eating again and can make it very painful for some people.
Or at least, this is what I've been told happens. You need to drink plenty of water (or any other fluid really will do if you don't like water) and have plenty of fibre in your diet. Perhaps you could take some mild laxatives if this still doesn't help?