[PATCH 01/14 v7] Configury support for --enable-stack-protector.
Florian Weimer
fweimer@redhat.com
Fri Jun 24 14:50:00 GMT 2016
On 06/07/2016 01:06 PM, Nix wrote:
> + AC_HELP_STRING([--enable-stack-protector=@<:@yes|no|all|strong@:>@],
> + [Use -fstack-protector[-all|-strong] to detect glibc buffer overflows]),
I think this should say: “Compile glibc with
-fstack-protector{,-all,-strong}”. The expectation is that this detects
not just glibc buffer overflows. (I do not have strong opinions about
the option formatting.)
> +@item --enable-stack-protector
> +@itemx --enable-stack-protector=strong
> +@itemx --enable-stack-protector=all
> +Compile the C library and all other parts of the glibc package
> +(including the threading and math libraries, NSS modules, and
> +transliteration modules) using the GCC @option{-fstack-protector},
> +@option{-fstack-protector-strong} or @option{-fstack-protector-all}
> +options to detect stack overruns. Only the dynamic linker and a small
> +number of routines called directly from assembler are excluded from this
> +protection.
I would drop the final sentence. It does not provide much information
and is also not entirely correct (being called from assembler doesn't
make much of a difference).
Thanks,
Florian
More information about the Libc-alpha
mailing list