Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Let me see if I understand... you have a special "hardened" gcc toolchain, and 
you're using it to compile the 
Linux kernel.  Your special toolchain has some patches to make gcc use SSP and 
PIE by default, unless the "-
D__KERNEL__" option is given.  Is that right?

If so, that seems to me like an abuse of the -D option.  It would be better for 
you to remove the patch from 
gcc where it makes -D__KERNEL__ imply -nossp -nopie, and to instead patch the 
Linux kernel build system 
(Makefiles, etc.) so that it passes "-D__KERNEL__ -nossp -nopie" rather than 
"-D__KERNEL__".  While it would 
be possible to patch distcc to work around this, that doesn't seem like the 
best place to fix it.


Original comment by [email protected] on 26 Oct 2008 at 7:07

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
You did understand everything right, yeah!

But after your statement I think that your way would be the better way. I had a 
closer look to the patches (http://git.ipfire.org/?
p=patches.git;a=tree;f=gcc;h=23ad0e6226cfc8a80419e69d2ef8fc9d6fccfbbd;hb=HEAD) 
and 
it would not be much to do to append -nopie to the gcc command line.

I thougt it would be interesting for some other hardened distributions (like 
gentoo 
hardened) to have that feature in distcc. That was my intention to ask here :D

Thanks for reply...
If it won't work, I will get back to you :D

Original comment by [email protected] on 26 Oct 2008 at 9:39

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Closing this issue with no changes to distcc; as discussed, Linux kernel build 
system is a better place to make 
the change.  (Feel free to reopen if you disagree.)


Original comment by [email protected] on 27 Oct 2008 at 2:22

  • Changed state: Invalid

from distcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.