anchao commented on issue #12687:
URL: https://github.com/apache/nuttx/issues/12687#issuecomment-2232139649

   I'm not sure if the `naked` attribute could avoid this issue, which ensures 
that the unwind `extab` does not contain any push content:
   
   ```
   diff --git a/include/nuttx/init.h b/include/nuttx/init.h
   index af3dce335f..98b9ba68f8 100644
   --- a/include/nuttx/init.h
   +++ b/include/nuttx/init.h
   @@ -98,7 +98,7 @@ EXTERN uint8_t g_nx_initstate;  /* See enum nx_initstate_e 
*/
    
    /* OS entry point called by boot logic */
    
   -void nx_start(void);
   +void nx_start(void) noreturn_function naked_function;
    
    #undef EXTERN
    #ifdef __cplusplus
   
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to