Sign in to follow this  
Followers 0
SigFLUP

__stack_smash_handler

4 posts in this topic

Hey, I'm on openbsd. Any ideas on how to not compile with references to __stack_smash_handler and __guard? So far I see no options to not do this in the gcc documentation. Also, where does this come from? Is it possible to specify any function prolog/eplog? Where is it configured that we want to call __stack_smash_handler? When I cross compile to non-native archs I get no references to these two. What's the word?

0

Share this post


Link to post
Share on other sites

I haven't the slightest idea what compiler you're using, but if you're using gcc, pass in "-fstack-protector" as an argument.

0

Share this post


Link to post
Share on other sites

I haven't the slightest idea what compiler you're using, but if you're using gcc, pass in "-fstack-protector" as an argument.

Yeah I'm using gcc. For me it's doing this by default. I don't want stack protection. I'm touring the documentation now and am not finding how to specify the opposite. I guess I'll post again when I find the correct argument.

0

Share this post


Link to post
Share on other sites

... ahhh found it: -fno-stack-protector

thanks for the hint!

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0