pussuw commented on code in PR #6197:
URL: https://github.com/apache/incubator-nuttx/pull/6197#discussion_r874463001


##########
sched/task/exit.c:
##########
@@ -108,3 +106,8 @@ void exit(int status)
 
   _exit(status);
 }
+
+void exit(int status)

Review Comment:
   The AVR build seems to want to pull exit() and _exit() from avr/libgcc 
unless I make the strong definition for exit() here.  Adding the flags 
-nostartfiles -nodefaultlibs and / or -nostdlib seems to make no difference. 
Added the flags to both the linker flags as well as the compiler flags, and 
still the linker wants to pull _exit() from the avr libgcc.
   
   The nuttx kernel needs / uses exit() also so I think defining it here until 
the libc version is taken into use is fine.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to