This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc cross compiler for "powerpc-eabi"(with out OS)


Dear Sir,

We want to use GCC for compiling code to a board based on MPC8260 processor.
The code consists of C and assembly languages to initialize processor and test
the interfaces in the board. There will not be any OS on the board.
We have done the following by selecting target=powerpc-eabi option.
1) Build binutils (binutils-2.21)
2) Build bootstrap gcc (gcc-4.4.1)
3) Build newlib (newlib-1.19.0)
4) Build full gcc


But, we are stuck with implementing __eabi(), __init() and __fini() functions.
Normally we do the following
1. initilize MPC8260 registers (including r1,Stack pointer)
2. Intialize Memory controller and SIU
3. Finally we call main( in C code)


1. We would like to know what is done in __eabi() function which is included in the main() by default by the compiler as I was getting undefined reference to __eabi in main function.

2. What is the function of __init() in generally which is called by __eabi() function?

3. Similarly, how to implement these functions for my target ? Any documents or any clues..

Please help in this direction.

REgards,
Thulasi





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]