[coreboot-gerrit] New patch to review for coreboot: crossgcc: Fix x86_64-elf target's -m16 support

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Aug 20 17:55:37 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11289

-gerrit

commit e59ced49f3d19a6aa7a0d4c2c156571e56d3eef3
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Thu Aug 20 17:53:52 2015 +0200

    crossgcc: Fix x86_64-elf target's -m16 support
    
    It still needs to pass --32 (yes, 32) to the assembler.
    x86_64-linux does this (through some other config file),
    x86_64-elf did not.
    
    This fixes building SeaBIOS with our x86_64-elf multilib compiler.
    
    Change-Id: Ibe2a70e46e64e71c947482be5ec0eaf7f7bf300d
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/crossgcc/patches/gcc-5.2.0_elf_biarch.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/util/crossgcc/patches/gcc-5.2.0_elf_biarch.patch b/util/crossgcc/patches/gcc-5.2.0_elf_biarch.patch
index 37240f9..1960816 100644
--- a/util/crossgcc/patches/gcc-5.2.0_elf_biarch.patch
+++ b/util/crossgcc/patches/gcc-5.2.0_elf_biarch.patch
@@ -74,3 +74,14 @@ diff -urN gcc-4.9.2/gcc/config.gcc gcc-4.9.2/gcc/config.gcc
  	;;
  i[34567]86-*-rdos*)
      tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/rdos.h"
+--- gcc-5.2.0/gcc/config/i386/x86-64.h.orig	2015-08-20 17:17:34.555919593 +0200
++++ gcc-5.2.0/gcc/config/i386/x86-64.h	2015-08-20 17:17:42.615908670 +0200
+@@ -49,7 +49,7 @@
+ #define WCHAR_TYPE_SIZE 32
+ 
+ #undef ASM_SPEC
+-#define ASM_SPEC "%{m32:--32} %{m64:--64} %{mx32:--x32}"
++#define ASM_SPEC "%{m16|m32:--32} %{m64:--64} %{mx32:--x32}"
+ 
+ #undef ASM_OUTPUT_ALIGNED_BSS
+ #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \



More information about the coreboot-gerrit mailing list