Hi Vasu,
The problem actually exists in the configuration in STM32CubeMX and not in the target link file.
Enable the 'Do not generate the main()' checkbox in the project manager section:
You can refer this for any further doubts:

Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!