diff options
author | Matt Fleming <matt.fleming@intel.com> | 2013-01-08 10:14:22 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-01-08 10:37:06 +0000 |
commit | 8789d2689564c13754bac94c8309b0de1e34a42a (patch) | |
tree | 3e9c5a4a6d78ea898063444626388a232f681170 /memdump/Makefile | |
parent | c5f62920d2a8ffba0e9c3282403a8676c6073de5 (diff) | |
download | syslinux-8789d2689564c13754bac94c8309b0de1e34a42a.tar.gz syslinux-8789d2689564c13754bac94c8309b0de1e34a42a.tar.xz syslinux-8789d2689564c13754bac94c8309b0de1e34a42a.zip |
mk/embedded.mk: Don't use -mregparm in core
Unfortunately commit 4eb06d95d882 ("mk: Add -fPIC for x86_64 to
embedded.mk") left -mregparm enabled when compiling objects in core/,
which means that when compiling for i386 those objects are compiled
with a different ABI compared with everything else, leading to hangs
when booting under 32-bit EFI.
We should only enable -mregparm for code that absolutely requires it,
such as dos/crt0.S which would need to be re-written to use another
ABI.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'memdump/Makefile')
-rw-r--r-- | memdump/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/memdump/Makefile b/memdump/Makefile index e5c27969..ae2b3f0e 100644 --- a/memdump/Makefile +++ b/memdump/Makefile @@ -17,6 +17,8 @@ VPATH = $(SRC) include $(MAKEDIR)/embedded.mk +CFLAGS += -mregparm=3 -DREGPARM=3 + OPTFLAGS = INCLUDES = -include $(SRC)/code16.h -I$(SRC) LDFLAGS = -T $(SRC)/com16.ld |