Jump to content


Photo
- - - - -

__stack_smash_handler


  • Please log in to reply
3 replies to this topic

#1 SigFLUP

SigFLUP

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 367 posts
  • Gender:Not Telling

Posted 03 December 2009 - 06:54 PM

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?

#2 lattera

lattera

    Underground Shizzleness

  • Members
  • 511 posts
  • Gender:Male

Posted 03 December 2009 - 07:59 PM

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

#3 SigFLUP

SigFLUP

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 367 posts
  • Gender:Not Telling

Posted 03 December 2009 - 08:10 PM

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.

#4 SigFLUP

SigFLUP

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 367 posts
  • Gender:Not Telling

Posted 03 December 2009 - 08:14 PM

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

thanks for the hint!




BinRev is hosted by the great people at Lunarpages!