This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ARM stack initialization by GCC library

Hi,

I am writing bare-matal test code on KeyStone2 with ARM cortex-a15, I am using the GNU v4.7.3 compiler with CCS5.4. I have a questions about the gcc library function.

How the gcc library initialize the stack? In the link option and link command file, only one .stack section is defined, but as you known, each ARM mode (User, Supervisor, Abort…) has separate stack, how the gcc library allocate the .stack section to each mode?

It will be great if someboy can provide the source code of the entry function "_start" of GCC library.

 

Thank you very much!