build glibc with stack protector all

Rogelio Serrano rogelio.serrano at gmail.com
Tue Jan 15 19:27:03 PST 2008


On Jan 16, 2008 8:03 AM, Robert Connolly <robert at linuxfromscratch.org> wrote:
> For a few months -fno-stack-protector is used to build ld.so and the
> libraries, using the 'configparms' file to reset some build
> rules. -fstack-protector-all can be used when building the utilities.
>
> robert
>

why? is it because the build system makes it hard? i know stack
protection has some overhead but i dont mind.

i think its possible to build everything with stack-protector-all. but
does it make sense to do that? i cant think of any reason why not
though.

maybe all thats needed is tweaking the configparms file. i tried
linking ld.so with libssp.a but it brings in symbols unneeded by
ld.so. maybe its better to copy a custom ssp into ld.so.

i wonder how openbsd does it.

-- 
Lay low and nourish in obscurity



More information about the hlfs-dev mailing list