and got the following error:-Fatal error: L3900U: Unrecognized option '--linker_script'.
I wonder if your armink might be out-of-date compared with your armcc. What is the output of armcc --vsn armlink --vsn?It might also be worth checking if there is is more than one armlink to be found on PATH.
It might also be worth checking if there is is more than one armlink to be found on PATH.