Re: Hot to test for _FORTIFY_SOURCE with Autoconf

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

 



On Tue, Mar 17, 2020 at 8:11 PM Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
>
> On Tue, 17 Mar 2020 at 22:15, Jeffrey Walton via Gcc-help
> <gcc-help@xxxxxxxxxxx> wrote:
> >
> > I'm trying to test for availability of _FORTIFY_SOURCE=2.
>
> What does that mean?

I'm trying to determine if the compiler supports FORTIFY_SOURCE.

When _FORTIFY_SOURCE=2 is used, *_chk functions are used when the
compiler can determine the destination buffer size. Effectively the
compiler inserts those Microsoft safer functions that the libc folks
rejected.

I think it is related to object size checking.

Jeff



[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