[PATCH] BZ #13979- A warning should be issued if FORTIFY_SOURCE is requested but not enabled

Jeff Law law@redhat.com
Mon May 7 21:11:00 GMT 2012


On 05/07/2012 03:07 PM, Andreas Jaeger wrote:
>
>  From bugzilla:
>
> "If a user requests FORTIFY_SOURCE checking, but for whatever reason the
> checks
> are not enabled (for example optimizer not enabled), we should issue a
> warning."
>
> Tested on x86-64.
>
> Ok to commit?
>
> Andreas
>
> 2012-03-30 Jeff Law <law@redhat.com>_FORTIFY_SOURCE requested but disabled, please enable optimizer to restore fortification
>
> * include/features.h: Warn if user requests FORTIFY_SOURCE checking
> but the checks are disabled for any reason.
Just a note, Fedora just twiddled the message today to read:

_FORTIFY_SOURCE requested but disabled, please enable optimizer to 
restore fortification

Basically the idea being to tell the user the most likely way to restore 
the behaviour they asked for.

jeff



More information about the Libc-alpha mailing list