Closed GoogleCodeExporter closed 9 years ago
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 fergus.h...@gmail.com
on 26 Oct 2008 at 7:07
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 m.s.tremer@gmail.com
on 26 Oct 2008 at 9:39
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 fergus.h...@gmail.com
on 27 Oct 2008 at 2:22
Original issue reported on code.google.com by
m.s.tremer@gmail.com
on 23 Oct 2008 at 5:43