Add -fno-builtin to CFLAGS
authorDouglas Raillard <douglas.raillard@arm.com>
Mon, 16 Jan 2017 11:32:28 +0000 (11:32 +0000)
committerDouglas Raillard <douglas.raillard@arm.com>
Mon, 30 Jan 2017 13:42:26 +0000 (13:42 +0000)
commite507f8e7fe24f97e95bc49fff56b1ac32a39a3ac
tree2fe353b08626a56e4ca76ffa9cb3d6b350b11702
parentd7aa7b44d6c73f84a8913b010e850e0322063d91
Add -fno-builtin to CFLAGS

Disable the automatic substitution of functions with builtins. The
existing -ffreestanding option should already do this but explicitly
adding -fno-builtin reduces the risk of compiler variation. With this
option, GCC is not supposed to be able to make assumptions on what the
function does, which could otherwise lead to security-sensitive code
removal.

This can lead to potentially less efficient code but improves
predictability of what code is actually compiled into the binary.

Change-Id: I06ad151c61318bd1b00d84976f051d2d94314acc
Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
Makefile