Customizing C startup code for powerpc-eabi embedded system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

I have customized C startup code for my powerpc-eabi embedded system. The
execution starts from _start and I have added code to initialize all
hardware, copying .data from LMA to VMA, clearing .bss sectiuon, etc. When I
branch to main() function, the application crashes. The control doesn't even
reach first statement in main.

When I searched in google, I found that main intermally calls __eabi() which
in turn calls __init(). What sort of initialization is done inside __init()
function? When I stepped into main() through debugger, the crash occurs when
brctl instruction is executed. I couldn't understand the cause of the
problem. Should I customize __init() called from __eabi() for my
application? Please suggest.

Thanks and regards,
Jeffi

-- 
View this message in context: http://old.nabble.com/Customizing-C-startup-code-for-powerpc-eabi-embedded-system-tp27124344p27124344.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux