|
|
# | # |
| |
# External CFLAGS can do more harm than good. | # External CFLAGS can do more harm than good. |
CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all |
CFLAGS := |
| |
XEN_TARGET_ARCH = x86_32 | XEN_TARGET_ARCH = x86_32 |
XEN_ROOT = ../../.. | XEN_ROOT = ../../.. |
|
|
OBJECTS = hvmloader.o acpi_madt.o | OBJECTS = hvmloader.o acpi_madt.o |
| |
# Disable PIE/SSP if GCC supports them. They can break us. | # Disable PIE/SSP if GCC supports them. They can break us. |
CFLAGS += $(call test-gcc-flag,$(CC),-nopie) |
CFLAGS += $(call test-gcc-flag,$(CC),-fno-pie) |
CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector) | CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector) |
CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector-all) | CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector-all) |
| |
|
|
# | # |
| |
# External CFLAGS can do more harm than good. | # External CFLAGS can do more harm than good. |
CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all |
CFLAGS := |
| |
XEN_TARGET_ARCH = x86_32 | XEN_TARGET_ARCH = x86_32 |
XEN_ROOT = ../../.. | XEN_ROOT = ../../.. |
|
|
XENINC=-I$(XEN_ROOT)/tools/libxc | XENINC=-I$(XEN_ROOT)/tools/libxc |
| |
# Disable PIE/SSP if GCC supports them. They can break us. | # Disable PIE/SSP if GCC supports them. They can break us. |
CFLAGS += $(call test-gcc-flag,$(CC),-nopie) |
CFLAGS += $(call test-gcc-flag,$(CC),-fno-pie) |
CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector) | CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector) |
CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector-all) | CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector-all) |
| |