|author||Rich Felker <email@example.com>||2015-09-22 20:24:28 +0000|
|committer||Rich Felker <firstname.lastname@example.org>||2015-09-22 20:24:28 +0000|
move calls to application init functions after crt1 entry point
this change is needed to be compatible with fdpic, where some of the main application's relocations may be performed as part of the crt1 entry point. if we call init functions before passing control, these relocations will not yet have been performed, and the init code will potentially make use of invalid pointers. conceptually, no code provided by the application or third-party libraries should run before the application entry point. the difference is not observable to programs using the crt1 we provide, but it could come into play if custom entry point code is used, so it's better to be doing this right anyway.
Diffstat (limited to 'arch/sh/crt_arch.h')
0 files changed, 0 insertions, 0 deletions