Re: Fortify_source and stack-protector-strong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Florian,

Thanks very much for your reply.
-D_FORTIFY_SOURCE=1 is just during compile time and -D_FORTIFY_SOURCE=2
also has runtime checks for variable length?
Thanks,

Reinoud

On Wed, Mar 2, 2022, 2:22 AM Florian Weimer <fweimer@xxxxxxxxxx> wrote:

> * Reinoud Koornstra via Gcc-help:
>
> > Is it possible to compile with -stack-protector-strong and
> > FORTIFY_SOURCE=1 or =2?  Or should both be used exclusively from
> > another? Both check for similar things.
>
> They complement each other.  I think most distributions use both these
> days (-fstack-protector-strong and -D_FORTIFY_SOURCE=2).
>
> Thanks,
> Florian
>
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux