- 22 Mar, 2016 1 commit
-
-
Andrei Borzenkov authored
OpenBSD 5.9 apparently defaults to -fpie. We use -fno-PIE when appropriate already, but that is not enough - it does not turn off -fpie. Actually check for -fPIE is not precise enough. __PIE__ is set for both -fpie and -fPIE but with different values. As far as I can tell, both options were introduced at the same time, so both should always be supported. This fixes compilation on OpenBSD 5.9 which otherwise created insanely big lzma_decompress.img. Reported, suggested and tested by: Jiri B <jirib@devio.us>
-
- 27 Feb, 2016 1 commit
-
-
Vladimir Serbinenko authored
-
- 31 Dec, 2015 4 commits
-
-
Vladimir Serbinenko authored
efiemu is supposed to be disabled when compiling through exe format. Unfortunately format was determined only after efiemu check. Reorder to fix the problem
-
Vladimir Serbinenko authored
Unwind tables are useless for us bt consume space if present. Ensure that they are not.
-
Vladimir Serbinenko authored
Check tries -fno-dwarf2-cfi-asm but adds -fno-asynchronous-unwind-tables to TARGET_CFLAGS. Fix this.
-
Vladimir Serbinenko authored
This argument disables generation of calls to __chkstk_ms. Those calls are useless on GRUB as function is dummy. Yet they increase module size and use limited-range relocations which may not work under some memory layouts. We currently don't use such layouts on concerned platforms but lt's correct this.
-
- 27 Nov, 2015 1 commit
-
-
Andrei Borzenkov authored
Macports add extra information after version itself: $flex --version flex 2.5.35 Apple(flex-31) We require at least felx 2.5.35 so do not need to care about prehistoric "flex version n.n.n"; just use second field always. Reported by Peter Cheung <mcheung63@hotmail.com>
-
- 05 Nov, 2015 1 commit
-
-
Vladimir Serbinenko authored
-
- 13 Oct, 2015 2 commits
-
-
Andrei Borzenkov authored
-
Andrei Borzenkov authored
GRUB code expects O32 or N32. N32 is less tested than O32, so we prefer to compile with O32. Some systems (e.g. GNU Guix) default to using newer n64 or n32 ABI. Try to find suitable options to force o32. For GCC this is simply -mabi=32. While clang supports this option as well, o32 ABI is valid for MIPS target and n32/64 ABI are valid for MIPS64 target only, so use "-target mips/mipsel -mabi=32". Reported-By:
Mark H Weaver <mhw@netris.org> Also-By:
Mark H Weaver <mhw@netris.org>
-
- 22 Jul, 2015 1 commit
-
-
Vladimir Serbinenko authored
Fixes compilation with clang.
-
- 21 Jul, 2015 1 commit
-
-
Vladimir Serbinenko authored
Also-by:
Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
-
- 02 Jun, 2015 1 commit
-
-
Leif Lindholm authored
Fix compilation with gcc 5.1 (avoid internal compiler error), by replacing explicit -march +nofp+nosimd options with -mgeneral-regs-only. This also enables the removal of some further conditional build flag setting.
-
- 03 Mar, 2015 5 commits
-
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
It's disabled by default and has been broken for a long time. As nobody is interested in fixing and maintaining it, remove it.
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
libgcc for boot environment isn't always present and compatible. libgcc is often absent if endianness or bit-size at boot is different from running OS. libgcc may use optimised opcodes that aren't available on boot time. So instead of relying on libgcc shipped with the compiler, supply the functions in GRUB directly. Tests are present to ensure that those replacement functions behave the way compiler expects them to.
-
Vladimir Serbinenko authored
Fixes compilation for sparc64 with clang.
-
- 23 Feb, 2015 3 commits
-
-
Vladimir Serbinenko authored
Add -msoft-float alongside clang arguments to specify ABI. Specify ABI in asm files explicitly. This trigers asm warning due to gcc failing to propagate -msoft-float but it's tolerable.
-
Vladimir Serbinenko authored
clang already uses -mthumb-interwork behaviour even thout it doesn't support the option.
-
Vladimir Serbinenko authored
Don't supply +nosimd to asm files. Otherwise +nosimd coming from flags forbids some of instructions used in cache_flush.
-
- 22 Feb, 2015 1 commit
-
-
Vladimir Serbinenko authored
-
- 21 Feb, 2015 6 commits
-
-
Vladimir Serbinenko authored
Automatically discover command line options to make clang and gcc behave in same way. Tested with qemu.
-
Vladimir Serbinenko authored
Deals with clang needing other arguments to stop issuing floating instructions than gcc.
-
Vladimir Serbinenko authored
These platforms don't have a hard limit on size of resulting code16 code, so we don't care if assembly is bigger than necessarry.
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
Previously we relied on assumption that clang always needs -no-integrated-as but it's not always true.
-
Vladimir Serbinenko authored
Otherwise mismatch between API flags triggers linker failure
-
- 20 Feb, 2015 2 commits
-
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
-
- 28 Jan, 2015 1 commit
-
-
Leif Lindholm authored
aarch64 toolchains do not support the -msoft-float option added by commit 3661261f . Insted, for arm64 use -march=armv8-a+nofp+nosimd. Reported-by:
Ryan Harkin <ryan.harkin@linaro.org>
-
- 26 Jan, 2015 1 commit
-
-
Vladimir Serbinenko authored
-
- 24 Jan, 2015 1 commit
-
-
Vladimir Serbinenko authored
-
- 22 Jan, 2015 1 commit
-
-
Felix Janda authored
-
- 25 Sep, 2014 1 commit
-
-
Colin Watson authored
* configure.ac: Only remove include/grub/cpu and include/grub/machine in the --platform=none case, not all of include/grub.
-
- 23 Sep, 2014 1 commit
-
-
Colin Watson authored
This makes it possible to build generally-useful utilities such as grub-mount even if the rest of GRUB has not been ported to the target CPU. * configure.ac: Add "none" platform. Default to it for unsupported CPUs rather than stopping with a fatal error. Don't downgrade x86_64-none to i386. Define COND_real_platform Automake conditional if the platform is anything other than "none". Don't do any include directory linking for "none". * Makefile.am: Skip building grub-core and all bootcheck targets if !COND_real_platform. * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL is defined.
-
- 07 Sep, 2014 2 commits
-
-
Colin Watson authored
* configure.ac: Remove -m64 from checks for -mcmodel=large and -mno-red-zone. These are always either unnecessary (x86_64-emu) or already in TARGET_CFLAGS at this point, and they produce incorrect results when building for x32. * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast pointers to Elf64_Xword via grub_addr_t, in order to work on x32. * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P, GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
-
Colin Watson authored
-
- 21 Jan, 2014 2 commits
-
-
Andrey Borzenkov authored
-
Andrey Borzenkov authored
It is installed in this path on openSUSE.
-