From 18f33da3ddf2d9da70aad04de67bdcc8f0270975 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Fri, 27 Dec 2019 17:53:12 +0100 Subject: [PATCH] gcc native: wrap __application_newlib_init inside `extern "C" { }` --- cross/patch/gcc/gcc/config/jehanne.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cross/patch/gcc/gcc/config/jehanne.c b/cross/patch/gcc/gcc/config/jehanne.c index 9573a88..95ea4f9 100644 --- a/cross/patch/gcc/gcc/config/jehanne.c +++ b/cross/patch/gcc/gcc/config/jehanne.c @@ -21,9 +21,11 @@ extern "C" { #include #include +void __application_newlib_init(int argc, char *argv[]); + } -void +__attribute__((__used__)) void __application_newlib_init(int argc, char *argv[]) { sys_rfork(RFFDG | RFREND | RFNOTEG);