Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add -fstack-protector-all without checks #5185

Merged
merged 2 commits into from
Nov 28, 2017

Conversation

nashif
Copy link
Member

@nashif nashif commented Nov 28, 2017

  • kernel: stack: add -fstack-protector-all without checks
  • cmake: add zephyr_cc_option_nocheck

Fixes #5019

Support adding options without checking them with the compiler. In some
cases the simple check routine fails due to missing symbols.

Signed-off-by: Anas Nashif <[email protected]>
@nashif nashif requested a review from SebastianBoe as a code owner November 28, 2017 20:56
@nashif nashif changed the title - kernel: stack: add -fstack-protector-all without checks - cmake: add zephyr_cc_option_nocheck add -fstack-protector-all without checks Nov 28, 2017
@nashif nashif requested a review from andrewboie November 28, 2017 20:59
CMakeLists.txt Outdated
else()
zephyr_cc_option(-fno-stack-protector)
zephyr_cc_option_nocheck(-fno-stack-protector)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can get rid of the -fno-stack-protector clause entirely, it's not like its on by default or something.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nashif nashif merged commit eb88bf2 into zephyrproject-rtos:master Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants