search for: archopt

Displaying 12 results from an estimated 12 matches for "archopt".

2016 Oct 18
2
[PATCH] Fix for crash with certain EFIs
...bios boot. After rebuilding it with -mno-red-zone the problem appears to be fixed, at least after a couple of hours of testing I have not seen it anymore. One comment: --- syslinux-6.03-orig/mk/efi.mk +++ syslinux-6.03/mk/efi.mk @@ -17,6 +17,9 @@ endif ifeq ($(ARCH),x86_64) ARCHOPT = -m64 -march=x86-64 +ifdef EFI_BUILD + ARCHOPT = -mno-red-zone +endif I would do this (add a plus): ARCHOPT += -mno-red-zone Thanks, Jur van der Burg.
2016 Oct 20
0
[PATCH] Fix for crash with certain EFIs
...gn-labels=0) GCCOPT += $(call gcc_ok,-falign-loops=0,-malign-loops=0) -ifeq ($(FWCLASS),EFI) -GCCOPT += -mno-red-zone -else +ifneq ($(FWCLASS),EFI) GCCOPT += -mregparm=3 -DREGPARM=3 endif --- syslinux.orig/mk/efi.mk +++ syslinux/mk/efi.mk @@ -17,6 +17,7 @@ endif ifeq ($(ARCH),x86_64) ARCHOPT = -m64 -march=x86-64 + ARCHOPT += -mno-red-zone EFI_SUBARCH = $(ARCH) endif @@ -29,7 +32,7 @@ -I$(core)/include -I$(core)/ $(ARCHOPT) \ -I$(com32)/lib/ -I$(com32)/libutil/include -std=gnu99 \ -DELF_DEBUG -DSYSLINUX_EFI -I$(objdir) \ -...
2016 Oct 17
1
[PATCH] Fix for crash with certain EFIs
...et the stack-boundary default to whatever it is on 64bit #GCCOPT += $(call gcc_ok,-mpreferred-stack-boundary=8,) #GCCOPT += $(call gcc_ok,-incoming-stack-boundary=8,) --- syslinux-6.03-orig/mk/efi.mk +++ syslinux-6.03/mk/efi.mk @@ -17,6 +17,9 @@ endif ifeq ($(ARCH),x86_64) ARCHOPT = -m64 -march=x86-64 +ifdef EFI_BUILD + ARCHOPT = -mno-red-zone +endif EFI_SUBARCH = $(ARCH) endif @@ -29,7 +32,7 @@ -I$(core)/include -I$(core)/ $(ARCHOPT) \ -I$(com32)/lib/ -I$(com32)/libutil/include -std=gnu99 \ -DELF_DEBUG -DSYSLIN...
2015 Mar 14
0
[PATCH 0/1] EFI access from Com32 modules
...CH as apt +# gnuefi sets up architecture specifics in ia32 or x86_64 sub directories +# set up the LIBDIR and EFIINC for building for the appropriate architecture + +GCCOPT := $(call gcc_ok,-fno-stack-protector,) + +EFIINC = $(objdir)/include/efi +LIBDIR = $(objdir)/lib + +ifeq ($(ARCH),i386) + ARCHOPT = -m32 -march=i386 + EFI_SUBARCH = ia32 +endif +ifeq ($(ARCH),x86_64) + ARCHOPT = -m64 -march=x86-64 + EFI_SUBARCH = $(ARCH) +endif + + + +CFLAGS := $(CFLAGS) +CFLAGS += -I$(EFIINC) -I$(EFIINC)/$(EFI_SUBARCH) \ + -DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \ + -Wall \ + -I$...
2015 Sep 14
1
mk/efi.mk: Build gnu-efi with the Makefile, ARFLAGS=$(AROPT)
...otector,) > EFIINC = $(objdir)/include/efi > LIBDIR = $(objdir)/lib > +EFIDIR = $(topdir)/gnu-efi/gnu-efi-3.0 Would it make sense to add AROPT = rvU or #ifdefine AR_DEFAULT_SETS_TIMESTAMP_TO_ZERO AROPT = rvU #elseif AROPT = rv #endifdefine ? > ifeq ($(ARCH),i386) > ARCHOPT = -m32 -march=i386 > @@ -55,7 +56,13 @@ $(EFIINC)/%.h $(EFIINC)/protocol/%.h $(EFIINC)/$(EFI_SUBARCH)/%.h: gnuefi ; > .PHONY: gnuefi > gnuefi: > @echo Building gnu-efi for $(EFI_SUBARCH) > - $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) $(objdir) > + cd $(topdir) && gi...
2020 Jul 28
1
[PATCH] mk/efi: add -znoseparate-code to LD_FLAGS for EFI builds
...elf_$(EFI_SUBARCH)_efi.lds LDFLAGS = -T $(SRC)/$(ARCH)/syslinux.ld -Bsymbolic -pie -nostdlib -znocombreloc \ - -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) $(CRT0) -E + -znoseparate-code -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) \ + $(CRT0) -E SFLAGS = $(GCCOPT) $(GCCWARN) $(ARCHOPT) \ -fomit-frame-pointer -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ \
2016 Oct 19
4
[PATCH] Fix for crash with certain EFIs
Hi Ady, Would it work if we removed "ifdef EFI_BUILD" condition and just add -mno-red-zone for all x86_64 builds? If not, do you have any ideas how to pass this flag? This could work, because the patch is adding the -mno-red-zone flag only for x86_64 builds, which are only used in the form of the efi64 target. The efi32 and bios targets are both 32-bit. BTW. I also tried 6.04-pre1 and
2015 Sep 14
11
[PATCH 0/4] efi: Makefile improvement
From: Sylvain Gault <sylvain.gault at gmail.com> These few patches contain a few improvement about the Makefiles for EFI. Mainly, to rebuild the files when needed, and only when needed. The three shell scripts efi/{check,build,clean}-gnu-efi.sh disappeared and are now integrated as makefile recipes. You'll notice an argument ARFLAGS=rvU to the recursive make calls to gnu-efi. This is
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
This patch adds to the core EFI image booting capabilities. It was tested on VMware EFI clients and HP Elitebook EFI notebooks, only on PXE environments but it should work on non-PXE scenarios as well. Feedback appreciated. Best, Patrick Signed-off-by: Patrick Masotta <masottaus at yahoo.com> --- diff -uprN a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c ---
2015 Sep 14
0
[PATCH 3/4] mk/efi.mk: Build gnu-efi with the Makefile
...git a/mk/efi.mk b/mk/efi.mk index a705440..5ef6702 100644 --- a/mk/efi.mk +++ b/mk/efi.mk @@ -10,6 +10,7 @@ core = $(topdir)/core GCCOPT := $(call gcc_ok,-fno-stack-protector,) EFIINC = $(objdir)/include/efi LIBDIR = $(objdir)/lib +EFIDIR = $(topdir)/gnu-efi/gnu-efi-3.0 ifeq ($(ARCH),i386) ARCHOPT = -m32 -march=i386 @@ -55,7 +56,13 @@ $(EFIINC)/%.h $(EFIINC)/protocol/%.h $(EFIINC)/$(EFI_SUBARCH)/%.h: gnuefi ; .PHONY: gnuefi gnuefi: @echo Building gnu-efi for $(EFI_SUBARCH) - $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) $(objdir) + cd $(topdir) && git submodule update --init + mk...
2018 Aug 02
1
[PATCH 1/2] Add fabs() implementation
When we add -ffreestanding the compiler won't get to inline this any more. Signed-off-by: David Woodhouse <dwmw2 at infradead.org> --- com32/lib/math/fabs.S | 15 +++++++++++++++ mk/lib.mk | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 com32/lib/math/fabs.S diff --git a/com32/lib/math/fabs.S b/com32/lib/math/fabs.S new file mode 100644 index
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
...l\n" fi diff --git a/mk/lib.mk b/mk/lib.mk index ceb95bd..f00dd94 100644 --- a/mk/lib.mk +++ b/mk/lib.mk @@ -38,6 +38,31 @@ LIBFLAGS = -DDYNAMIC_CRC_TABLE -DPNG_NO_CONSOLE_IO \ -DPNG_NO_MNG_FEATURES \ -DPNG_NO_READ_tIME -DPNG_NO_WRITE_tIME +ifdef EFI_BUILD + +ifeq ($(ARCH),i386) + ARCHOPT = -m32 -march=i386 + EFI_SUBARCH = ia32 +endif +ifeq ($(ARCH),x86_64) + ARCHOPT = -m64 -march=x86-64 + EFI_SUBARCH = $(ARCH) +endif + +EFI_OBJDIR = $(OBJ)/../.. +EFIINC = $(EFI_OBJDIR)/include/efi + +FW_SUBDIR = efi +FWFLAGS = -I$(EFIINC) -I$(EFIINC)/$(EFI_SUBARCH) -I$(EFIINC)/protocol \ + -DEFI_FU...