actually if you really get dismissed, you can go to MOM and sue him/the company.
but then again, it's not an easy route. one of my relatives was fired during her pregnancy as she was not on good terms with her superior all along, and she gt pregnant with her 2nd child in her 2nd yr with the company. i guessed they were fed up and her superior ganged up with the HR to dismiss her immediately when i think she was in early 2nd trimester. and the best part was, she worked in a really huge MNC, very reknowned and i find it really despicable for the HR to do this to her.
she went to MOM, went to her MP etc. she didnt want a compensation, what she wanted was some justice to be done and an apology from the company.. but instead, when she went for the negotiation b/w her ex-superior, the HR manager, and the MOM staff, all the MOM staff did was to tell her to "forget about the issue" and move on because she had insufficient evidence to fight against a big company.
she was pretty affected, but she decided that her baby is still most impt to her after all, and instead of getting all frustrated and agitated, she let go and forget about it. so.. ended up, no compensation, nothing.