Re: [PATCH 2/2] mingw: enable DEP and ASLR
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- May 1, 2019, 23:36 UTC
- Message-ID
- <20190501233641.GC202237@genre.crustytoothpaste.net>
- In-Reply-To
- <2e7be484-74d7-7258-954e-3a4a34a36c01@gmail.com>
On Wed, May 01, 2019 at 08:39:22PM +0200, Alban Gruin wrote:
> -Og also exists to debug[0], even if it’s far less known. Perhaps it’s > better to check for -g (and its variants[1]) as the user clearly states > their intent to debug the resulting binary, rather than checking for > special cases.
I can't speak for the Windows folks, but Debian frequently builds with -O2 -g and strips the debugging symbols into a separate package that can be installed in case of a crash. So -g need not be an indication of non-production use.
-- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204