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:
parent
277498c283
commit
a23a0388e6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue