AGESA: Restrict use of -fno-zero-initialized-in-bss

Only apply the flag for libagesa -class.

Change-Id: Ide46214d62b2b16e5e1deaa0796be784ed813095
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34885
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kyösti Mälkki 2019-03-20 08:05:42 +02:00
parent 277498c283
commit a23a0388e6
1 changed files with 2 additions and 1 deletions

View File

@ -10,9 +10,10 @@ subdirs-y += common
classes-y += libagesa classes-y += libagesa
libagesa-y = libagesa-y =
libagesa-generic-ccopts += -D__LIBAGESA__ libagesa-generic-ccopts += -D__LIBAGESA__
libagesa-generic-ccopts += -fno-zero-initialized-in-bss
libagesa-generic-ccopts += $(AGESA_INC) $(AGESA_AUTOINCLUDES) libagesa-generic-ccopts += $(AGESA_INC) $(AGESA_AUTOINCLUDES)
AGESA_CFLAGS := -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing AGESA_CFLAGS := -march=k8-sse3 -mtune=k8-sse3 -fno-strict-aliasing
CFLAGS_x86_32 += $(AGESA_CFLAGS) CFLAGS_x86_32 += $(AGESA_CFLAGS)
CFLAGS_x86_64 += $(AGESA_CFLAGS) CFLAGS_x86_64 += $(AGESA_CFLAGS)