I am getting syntax error which I try to link the Scatter file. I am using arm - GCC toolchain.
What is wrong is not specifed.
The same is working for arm compiler but not for arm gcc
core said:The same is working for arm compiler but not for arm gcc
You mean the ARM Linker ?
As previously suggested, the ARM Linker and the GCC Linker are entirely different tools - there is no reason to expect that a Scatter file for the ARM Linker is going to work with the GCC Linker.
Documentation for the GCC Linker: https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
GCC Linker Command Language, Scripts, etc:
https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_chapter/ld_3.html