List of init functions / sections / segments to call?
Is there a list of functions, sections or segment function pointers to call to set up everything in newlib-nano? I have custom initialization code and linker script, so I can't use the default scripts and crt0, crti, crtbegin, etc. I haven't had much luck figuring out what the default linker scripts and startup code do -- there's too much conditional code, and I'm not sure what (if anything) is important or even relevant to my platform.
To be clear, this is a Cortex-M0 machine, and I get control of the CPU from the first instruction after reset. After setting up stack, hardware, copying initialized data to RAM and zeroing the bss segment, I would like to call newlib-nano libc initialization functions to set things up before calling constructors and then main().
Is there a list of these functions somewhere, or a list of linker-segment names containing initialization function pointers or whatever?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- dave m.
- Solved:
- Last query:
- Last reply: