search for: gccopt

Displaying 20 results from an estimated 20 matches for "gccopt".

2016 Oct 20
0
[PATCH] Fix for crash with certain EFIs
...i64 objects x86_64 EFI requires that all sources are compiled without red zone, which is not supported by the Windows ABI. Without this, syslinux crashes on some UEFI implementations. --- syslinux.orig/mk/com32.mk +++ syslinux/mk/com32.mk @@ -29,6 +29,9 @@ ifeq ($(strip $(ARCH)),x86_64) GCCOPT += $(call gcc_ok,-m64,) GCCOPT += $(call gcc_ok,-march=x86-64) +ifeq ($(FWCLASS),EFI) + GCCOPT += $(call gcc_ok,-mno-red-zone) +endif #let the stack-boundary default to whatever it is on 64bit #GCCOPT += $(call gcc_ok,-mpreferred-stack-boundary=8,) #GCCOPT += $...
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
2016 Oct 17
1
[PATCH] Fix for crash with certain EFIs
...s x86_64 EFI requires that all sources are compiled without red zone, which is not supported by the Windows ABI. Without this, syslinux crashes on some UEFI implementations. --- syslinux-6.03-orig/mk/com32.mk +++ syslinux-6.03/mk/com32.mk @@ -29,6 +29,9 @@ ifeq ($(strip $(ARCH)),x86_64) GCCOPT += $(call gcc_ok,-m64,) GCCOPT += $(call gcc_ok,-march=x86-64) +ifdef EFI_BUILD + GCCOPT += $(call gcc_ok,-mno-red-zone) +endif #let the stack-boundary default to whatever it is on 64bit #GCCOPT += $(call gcc_ok,-mpreferred-stack-boundary=8,) #GCCOPT += $(call...
2015 Nov 27
8
[PATCH 0/2] Do not use the "red zone" on EFI
From: Sylvain Gault <sylvain.gault at gmail.com> The System V ABI for x86-64 specify that a "red zone" is an area of 128 bytes above the current stack frame. This area can be used by a called function in order to avoid the overhead of modifying the stack pointer. The direct effect is that interrupt/event/signal handlers must not write to this area. In the UEFI calling convention,
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
2011 Apr 11
0
[PATCH] Makefile: Move Makefile fragments into mk/
...= diff --git a/com32/MCONFIG b/mk/com32.mk similarity index 98% rename from com32/MCONFIG rename to mk/com32.mk index a74ed32..4a6caae 100644 --- a/com32/MCONFIG +++ b/mk/com32.mk @@ -15,7 +15,7 @@ ## COM32 common configurables ## -include $(topdir)/MCONFIG +include $(MAKEDIR)/syslinux.mk GCCOPT := $(call gcc_ok,-std=gnu99,) GCCOPT += $(call gcc_ok,-m32,) diff --git a/MCONFIG.devel b/mk/devel.mk similarity index 100% rename from MCONFIG.devel rename to mk/devel.mk diff --git a/MCONFIG.embedded b/mk/embedded.mk similarity index 98% rename from MCONFIG.embedded rename to mk/embedded.mk inde...
2011 Apr 16
6
[PATCH 0/6] Makefile cleanups
From: Matt Fleming <matt.fleming at linux.intel.com> This series includes a patch (PATCH 1/6) that I sent previously but I thought it was worth sending it again since the rest of the series depends on it, and it also gives a bit of context. These cleanups make it simpler to do the big switchover to ELF modules on the elflink branch because the libraries in $LIBS are now contained in one
2015 Sep 14
1
mk/efi.mk: Build gnu-efi with the Makefile, ARFLAGS=$(AROPT)
On Mon, Sep 14, 2015 at 05:50:58AM +0200, celelibi--- via Syslinux wrote: > 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 Would it make sense to add AROPT = rvU or #ifdefine AR_DEFAULT_SETS_TIMESTAMP_TO_ZERO AROPT = rvU #elseif AROPT = rv #endifdefine ? &g...
2010 Mar 15
1
host cross-compile patch
.....6c5a164 100644 --- a/MCONFIG +++ b/MCONFIG @@ -39,19 +39,23 @@ UPX = upx CHMOD = chmod -CC = gcc +# Pass cross-compiler tuple to make, +# e.g. make CROSS_COMPILE=i686-nptl-linux-gnu- +CROSS_COMPILE ?= +CC = $(CROSS_COMPILE)gcc + gcc_ok = $(shell tmpf=gcc_ok.$$$$.tmp; \ if $(CC) $(GCCOPT) $(1) -c $(topdir)/dummy.c \ -o $$tmpf 2>/dev/null ; \ then echo '$(1)'; else echo '$(2)'; fi; \ rm -f $$tmpf) -LD = ld -OBJDUMP = objdump -OBJCOPY = objcopy -AR = ar -NM = nm -RANLIB = ranlib +LD = $(CROSS_COMPILE)ld +OBJDUMP = $(CROSS_COMPILE...
2020 Jul 28
1
[PATCH] mk/efi: add -znoseparate-code to LD_FLAGS for EFI builds
...DSCRIPT := $(LIBDIR)/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)__ \
2015 Mar 14
0
[PATCH 0/1] EFI access from Com32 modules
...= $(topdir)/core + +# Support IA32 and x86_64 platforms with one build +# Set up architecture specifics; for cross compilation, set ARCH 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) +C...
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 Sep 14
0
[PATCH 3/4] mk/efi.mk: Build gnu-efi with the Makefile
...0 --- a/gnu-efi +++ b/gnu-efi @@ -1 +1 @@ -Subproject commit ab54e2b40e914d0ca01dc3d44c8d4eb8517bf999 +Subproject commit 06744d69273de4945cf0ffcaa4a6abf7cec707b6 diff --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...
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 ---
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...char *buf, /* nonextextent.c */ int no_next_extent(struct inode *, uint32_t); -/* fat.c */ -int vfat_copy_superblock(void *buf); - #endif /* FS_H */ diff --git a/mk/com32.mk b/mk/com32.mk index 6e7e9a6..262d2a6 100644 --- a/mk/com32.mk +++ b/mk/com32.mk @@ -48,8 +48,7 @@ endif CFLAGS = $(GCCOPT) $(GCCWARN) -march=i386 \ -fomit-frame-pointer -D__COM32__ \ -nostdinc -iwithprefix include \ - -I$(com32)/libutil/include -I$(com32)/include $(GPLINCLUDE) \ - -I../../core/include + -I$(com32)/libutil/include -I$(com32)/include $(GPLINCLUDE) SFLAGS = $(GCCOPT) $(G...
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com> The following patch series is available at, git://git.zytor.com/users/mfleming/syslinux.git elflink All patches are against the 'elflink' branch. This series fixes a few serious bugs and some behavioural incompatibilities with the 4.x series. Matt Fleming (19): ldlinux: Initialise 'p' before using it. ldlinux: Parse
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com> This series fixes some bugs and switches the elflink branch to be entirely ELF modules. It applies on top of, http://syslinux.zytor.com/archives/2011-April/016369.html The deletions in the diff stat below are mainly from deleting com32/elflink/modules (finally!). Now there should be no duplicate code because we don't need COM32 and
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...0644 --- a/com32/rosh/MCONFIG +++ b/com32/rosh/MCONFIG @@ -11,17 +11,8 @@ ## ----------------------------------------------------------------------- ## -## COM32 GRC configurables +## COM32 ROSH configurables ## ## Include the COM32 common configurables include ../MCONFIG - -# CFLAGS = $(GCCOPT) -W -Wall -march=i386 \ -# -fomit-frame-pointer -D__COM32__ \ -# -nostdinc -iwithprefix include \ -# -I$(com32)/libutil/include -I$(com32)/include -# -g3 -dD - -# LNXCFLAGS = -I$(com32)/libutil/include -W -Wall -O -g3 -D_GNU_SOURCE -dD -# -U__GNUC__ diff --git a/com32/rosh/ro...
2009 Feb 15
2
COM32 module: Read-Only shell
...2 of the License, or +## (at your option) any later version; incorporated herein by reference. +## +## ----------------------------------------------------------------------- + +## +## COM32 GRC configurables +## + +## Include the COM32 common configurables +include ../MCONFIG + +# CFLAGS = $(GCCOPT) -W -Wall -march=i386 \ +# -fomit-frame-pointer -D__COM32__ \ +# -nostdinc -iwithprefix include \ +# -I$(com32)/libutil/include -I$(com32)/include +# -g3 -dD + +# LNXCFLAGS = -I$(com32)/libutil/include -W -Wall -O -g3 -D_GNU_SOURCE -dD +# -U__GNUC__ diff --git a/com32/rosh/Ma...
2011 May 25
1
[GIT PULL] elflink ldlinux
Hi, These patches contain support for some features that are already in Syslinux 4 but weren't working properly on the elflink branch. It's another step closer to feature parity with Syslinux 4. Having to jump through the comboot API for localboot support is less than ideal and I'll eventually fix that, probably when we move a big chunk of code from asm to C. Also, there's a