mirror_edk2/BaseTools/Source/C
Feng, Bob C c4c8c340ef BaseTools: Add GCC flags to Basetool build.
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1764

Some compiler flags restrict the compiler from making
arbitrary decisions while handling undefined C/C++ behaviors.
Therefore they can be used to fix some issues caused by undefined behavior.

For example, for GCC, the following flags are available:
-fno-delete-null-pointer-checks tells
the compiler NOT to assume that null pointer deference does not exist.
-fwrapv tells the compiler that signed overflow always wraps.

This patch is going to add these 2 build options to
BaseTool GCC build option.

Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2019-05-01 10:21:56 +08:00
..
BrotliCompress BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Common BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
DevicePath BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
EfiRom BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenCrc32 BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenFfs BaseTools: Fixed issue in MultiThread Genfds function 2019-04-10 13:32:10 +08:00
GenFv BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenFw BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenSec BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Include BaseTools/PiFirmwareFile: fix undefined behavior in SECTION_SIZE 2019-04-24 17:30:57 +02:00
LzmaCompress BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Makefiles BaseTools: Add GCC flags to Basetool build. 2019-05-01 10:21:56 +08:00
PyEfiCompressor BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Split BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
TianoCompress BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
VfrCompile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
VolInfo BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GNUmakefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Makefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00