Merge remote-tracking branch 'private/port-gcc-restart' into port-gcc-restart

This commit is contained in:
2019-12-27 19:52:01 +01:00
5 changed files with 11 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ index ddd3b8f..702aa59 100644
+ gnu_ld=yes
+ tmake_file=t-jehanne
+ extra_objs="${extra_objs} jehanne.o"
+ extra_gcc_objs="${extra_gcc_objs} jehanne.o"
+ default_use_cxa_atexit=yes
+ case $target in
+ x86_64-*)

View File

@@ -21,9 +21,11 @@ extern "C" {
#include <libc.h>
#include <posix.h>
void __application_newlib_init(int argc, char *argv[]);
}
void
__attribute__((__used__)) void
__application_newlib_init(int argc, char *argv[])
{
sys_rfork(RFFDG | RFREND | RFNOTEG);