SHIVAM DEOLANKAR created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1089

Project:Branches: D3athSkulll/rtems:stackchk-section-flags-fix to 
rtems/rtos/rtems:main
Author:   SHIVAM DEOLANKAR



## Summary

build: Separate SECTION_FLAGS from OPTIMIZATION_FLAGS

Move -ffunction-sections and -fdata-sections into new SECTION_FLAGS option to 
prevent breakage when users override OPTIMIZATION_FLAGS.

Fixes stack checker undefined reference when OPTIMIZATION_FLAGS=-g.

## AI Details

I have read and agree with the RTEMS Generative AI statement: 
https://www.rtems.org/generative-ai/

### Prompt used

Help me seperate out the following two flags from the OPTIMIZATIONS_FLAGS and 
create new SECTION_FLAGS. Give the required changes to be done in opto\*.yml 
and subsequent files if needed.

### AI model used

ChatGPT (GPT-5.2)

### How AI was used for the contribution

- [x] Formatting
- [ ] Test creation.
- [ ] Code comments.
- [ ] The entire contribution was generated using AI
- [ ] AI code completion such as Copilot in VSCode.

If others were used please add below

### Access

I confirm that I did not use any AI product that claims copyright ownership of 
generated code, and I have legitimate access to the tools used.

<!--Default settings, if it is a dropdown it will set after submission-->

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


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to