What do I do??

My LO has had a hard time pooping he poops very hard and just a little ball. What can I do or give him?