Second company is obliged to give u NOC , It's not written in the law but it's a practice of the market and is supervised by the labor bureau as well as the human rights committee ,so I recommend to approach your management and if u failed to obtain the NOC u can turn to the above mentioned authorities.