Joel Sherrill commented on a discussion on cpukit/libmisc/stackchk/check.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_115846

 >    RTEMS_SYSINIT_ISR_STACK,
 >    RTEMS_SYSINIT_ORDER_MIDDLE
 >  );
 > +
 > +/*
 > + * This is the default implementation. The user can override it 
 > + * at the application 
 > + */
 > +__attribute__((weak,noreturn)) void __stack_chk_fail(void)

It can be enabled just for that test. The unused symbols/functions will be left 
out of an exe if not referenced. I think only using the -fstack-protector-* 
option in the tests that exercise it is oK. No conditionals around anything in 
libmisc/stackcheck for stack-protector.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_115846
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to