SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Currently running 14.1, and have a question that may be bizzare, but would love an answer.
The default kernel that is installed in 14.1 seems to support the __stack_chk_fail symbol (according to /proc/kallsyms). When I try to compile my own kernel, the Makefile seems to add the -fno-stack-protector option to CFLAGS (after doing a "ifndef CONFIG_CC_STACKPROTECTOR_"). So obviously my resultant kernel does include support for the __stack_chk_fail symbol.
To cut a long story short, if I try to override the makefile by changing -fno-stack-protector to -fstack-protector, the compilation doesnt complete, with errors along the lines of "init/build-in.o: In function `name_to_dev_t': undefined reference to `__stack_chk_fail'", and so forth.
So my question is. Is it possible to copmile a kernel on 14.1 with support for the __stack_chk_fail symbol, and if so, how would one go about it?
Don't ever fiddle with the kernel makefiles when there is an option to do what you want to do.
Go into 'make menuconfig'
Go to "Processor type and features"
Go down to "Enable -fstack-protector buffer overflow detection" (towards the bottom, immediately above the timer frequency)
Enable it, save, and build.
Don't ever fiddle with the kernel makefiles when there is an option to do what you want to do.
Go into 'make menuconfig'
Go to "Processor type and features"
Go down to "Enable -fstack-protector buffer overflow detection" (towards the bottom, immediately above the timer frequency)
Enable it, save, and build.
Thank you so much. You wont believe how many times I went through the config and missed that option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.