From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by mail.openembedded.org (Postfix) with ESMTP id 6BA2E77300 for ; Tue, 6 Sep 2016 11:32:38 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id a6so6762732wmc.2 for ; Tue, 06 Sep 2016 04:32:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=iBoAaUd9eohFZySD3JTFk4KhpaUVJjIt2GiJq09yb0g=; b=FPukwLEZFO1RPMG8Or8H1CNego6zzWQBtIvybDkov/QWww7Ci3aBBtvt/rTNDcK14Y 5mmN6HQ0emg2dmVE6Ltt5uN8xv0V3sZA9yM+80Hr8mSbkUK3DmPPlbs80XetmzHpdDeR ZAxRlf8K3fqloHDeKUE93GJmoOyS417HwTu0wMZjDFYI+JY5rfO0Dun30kOMLG879Pg6 Z1BWLQX356tZgnh7a1/K/uH8gV3LYosAWgNpV53Ghqc4oJqyeLSeXS6eb35WwJoZbxsm hKArEtbfqRSi1eHDO8/jdfdwT63YtAtJR3g1dLso9r6CPTdiQZQVEFcoD7TYZPz0EjEg YwRQ== X-Gm-Message-State: AE9vXwMV3dlbm4e5XkhbYqMS5kgdmkWF9JkoN2dQXo0sHqaKAupfBol7Kt5atEC8R5VAHA== X-Received: by 10.194.119.197 with SMTP id kw5mr14944245wjb.143.1473161558100; Tue, 06 Sep 2016 04:32:38 -0700 (PDT) Received: from tfsielt31850.tycofs.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id ex14sm32943440wjc.30.2016.09.06.04.32.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Sep 2016 04:32:36 -0700 (PDT) From: =?UTF-8?q?Andr=C3=A9=20Draszik?= To: openembedded-core@lists.openembedded.org Date: Tue, 6 Sep 2016 12:32:35 +0100 Message-Id: <20160906113235.7130-1-git@andred.net> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Subject: [PATCH] libffi: backport patch to fix building MIPS soft float X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 11:32:39 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream-Status: Backport [https://github.com/libffi/libffi/commit/2ded2a4f494165c93293afc14ab0be1243cf8c49] Signed-off-by: André Draszik --- .../0001-mips-fix-MIPS-softfloat-build-issue.patch | 177 +++++++++++++++++++++ meta/recipes-support/libffi/libffi_3.2.1.bb | 1 + 2 files changed, 178 insertions(+) create mode 100644 meta/recipes-support/libffi/libffi/0001-mips-fix-MIPS-softfloat-build-issue.patch diff --git a/meta/recipes-support/libffi/libffi/0001-mips-fix-MIPS-softfloat-build-issue.patch b/meta/recipes-support/libffi/libffi/0001-mips-fix-MIPS-softfloat-build-issue.patch new file mode 100644 index 0000000..61c9eb3 --- /dev/null +++ b/meta/recipes-support/libffi/libffi/0001-mips-fix-MIPS-softfloat-build-issue.patch @@ -0,0 +1,177 @@ +From 655e82c92d5c3875aee04322f1993d6b0774a7bf Mon Sep 17 00:00:00 2001 +From: Yousong Zhou +Date: Mon, 15 Aug 2016 15:00:13 +0800 +Subject: [PATCH] mips: fix MIPS softfloat build issue + +The patch for o32.S is taken from OpenWrt packages repo 3a7a4bf "libffi: +fix MIPS softfloat build issue with current binutils" + +Signed-off-by: Felix Fietkau +Signed-off-by: Yousong Zhou +--- +Upstream-Status: Backport [https://github.com/libffi/libffi/commit/2ded2a4f494165c93293afc14ab0be1243cf8c49] + src/mips/n32.S | 17 +++++++++++++++++ + src/mips/o32.S | 17 +++++++++++++++++ + 2 files changed, 34 insertions(+) + +diff --git a/src/mips/n32.S b/src/mips/n32.S +index c6985d3..8f25994 100644 +--- a/src/mips/n32.S ++++ b/src/mips/n32.S +@@ -107,6 +107,16 @@ loadregs: + + REG_L t6, 3*FFI_SIZEOF_ARG($fp) # load the flags word into t6. + ++#ifdef __mips_soft_float ++ REG_L a0, 0*FFI_SIZEOF_ARG(t9) ++ REG_L a1, 1*FFI_SIZEOF_ARG(t9) ++ REG_L a2, 2*FFI_SIZEOF_ARG(t9) ++ REG_L a3, 3*FFI_SIZEOF_ARG(t9) ++ REG_L a4, 4*FFI_SIZEOF_ARG(t9) ++ REG_L a5, 5*FFI_SIZEOF_ARG(t9) ++ REG_L a6, 6*FFI_SIZEOF_ARG(t9) ++ REG_L a7, 7*FFI_SIZEOF_ARG(t9) ++#else + and t4, t6, ((1<