aboutsummaryrefslogtreecommitdiffstats
path: root/mk/com32.mk
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2011-12-15 11:06:56 +0000
committerMatt Fleming <matt.fleming@intel.com>2011-12-16 16:31:19 +0000
commit04303c2561333b937c30e37732cefe1df0abb280 (patch)
treef2e2b44dcd8a1e2f4a13271529ac3469974a1ad9 /mk/com32.mk
parent8f767b805cb3d63087d9d4f2eeb5eaf90bd71c30 (diff)
downloadsyslinux-04303c2561333b937c30e37732cefe1df0abb280.tar.gz
syslinux-04303c2561333b937c30e37732cefe1df0abb280.tar.xz
syslinux-04303c2561333b937c30e37732cefe1df0abb280.zip
core: Do not use -mregparm
When trying to integrate the old com32 code with EFI, EFI doesn't use mregparm. Using mregparm leads to incompatibilities with most 3rd party code anyway and it only results in a minimal space-saving at runtime. Pass all parameters on the stack by default.
Diffstat (limited to 'mk/com32.mk')
-rw-r--r--mk/com32.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/com32.mk b/mk/com32.mk
index 262d2a6c..db716c0d 100644
--- a/mk/com32.mk
+++ b/mk/com32.mk
@@ -22,7 +22,7 @@ GCCOPT += $(call gcc_ok,-m32,)
GCCOPT += $(call gcc_ok,-fno-stack-protector,)
GCCOPT += $(call gcc_ok,-fwrapv,)
GCCOPT += $(call gcc_ok,-freg-struct-return,)
-GCCOPT += -mregparm=3 -DREGPARM=3 -march=i386 -Os
+GCCOPT += -march=i386 -Os
GCCOPT += $(call gcc_ok,-fPIE,-fPIC)
GCCOPT += $(call gcc_ok,-fno-exceptions,)
GCCOPT += $(call gcc_ok,-fno-asynchronous-unwind-tables,)