#stack smash protection

1 messages · Page 1 of 1 (latest)

crystal palm
#

Is there a build option for stack smash protection on kernel code models?

drowsy sable
#

Like stack canary?

subtle mirage
#

ah

#

-fstack-protector and -mcmodel

crystal palm
#

Ah I was thinking more in the build.zig. I know you can invoke them from the command line but I didn’t find anything for within the build script

crystal palm
#

Huh even from the command line I’m getting an “unrecognized argument: '-fstack-protector'” error

subtle mirage
#

-fstack-protector is a flag for the sub-commands, i.e build-exe/lib