summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-08-08 18:29:19 -0400
committerPeter Jones <pjones@redhat.com>2017-08-11 15:18:39 -0400
commita7a7c391e1f7fb76de0168c474d80eb0c05acd02 (patch)
tree58f24c7067ec69b10c6cf91083d257969ae92952
parent1e717349927e39a15f12044870b92ab898eed1c1 (diff)
downloadefi-boot-shim-a7a7c391e1f7fb76de0168c474d80eb0c05acd02.tar.gz
efi-boot-shim-a7a7c391e1f7fb76de0168c474d80eb0c05acd02.zip
Make ARM targets use -mstrict-align
Otherwise device paths are definitely all kinds of screwed up, but other stuff might be as well. Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 79140a39..e041459b 100644
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,7 @@ ifeq ($(ARCH),ia32)
ARCH_SUFFIX_UPPER ?= IA32
endif
ifeq ($(ARCH),aarch64)
- CFLAGS += -DMDE_CPU_AARCH64 -DPAGE_SIZE=4096
+ CFLAGS += -DMDE_CPU_AARCH64 -DPAGE_SIZE=4096 -mstrict-align
LIBDIR ?= $(prefix)/lib64
ARCH_SUFFIX ?= aa64
ARCH_SUFFIX_UPPER ?= AA64
@@ -91,7 +91,7 @@ ifeq ($(ARCH),aarch64)
LDFLAGS += --defsym=EFI_SUBSYSTEM=$(SUBSYSTEM)
endif
ifeq ($(ARCH),arm)
- CFLAGS += -DMDE_CPU_ARM -DPAGE_SIZE=4096
+ CFLAGS += -DMDE_CPU_ARM -DPAGE_SIZE=4096 -mstrict-align
LIBDIR ?= $(prefix)/lib
ARCH_SUFFIX ?= arm
ARCH_SUFFIX_UPPER ?= ARM