From patchwork Fri May 17 19:42:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markos Chandras X-Patchwork-Id: 244694 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id C0F982C008F for ; Sat, 18 May 2013 05:43:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id DF8A8A016E; Fri, 17 May 2013 19:43:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zVTFUqVPOhQA; Fri, 17 May 2013 19:43:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 0BAC9A010E; Fri, 17 May 2013 19:43:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E8D898F74B for ; Fri, 17 May 2013 19:43:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 681F18D6C0 for ; Fri, 17 May 2013 19:43:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MFmHaQaH1huv for ; Fri, 17 May 2013 19:43:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1C51A8D6D5 for ; Fri, 17 May 2013 19:43:02 +0000 (UTC) Received: by mail-ee0-f43.google.com with SMTP id d41so2540147eek.16 for ; Fri, 17 May 2013 12:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer; bh=p9p4fjgRHlw1SzVit85cbGpK3unfHrEOfw7gML5TuLE=; b=vBXTbMHRItGkHRpLCevvo7KL4cFOg33VnvlsonNEASF9Li3Voi+IcAh37MYDEhfCjb KzOQp7RFFIuFCuT/NgFqXHJ/B7xmEc1Dg4rsPFNNMIIOz286tPukeOkya+P4ott2qbqs 4QsVNcAzeLnS5HDMzcPE78V8uLB11W90wySY5TWmlUE0BKNzwpj9IjHUgAKlr0plZZNA nv1ZbDxt2qgxKweTG1/h8ZRVRp8+m+qEKpKCfrTVAeyzzaNqJt8R7jjNVEMLXSgAFt2k eZQYfswne3YvD9hCA0vHMBYkMvZKx8b7MByuJufD9vLfpCWbV+z4jbgrNFs/oiYF0X7G W38A== X-Received: by 10.14.99.8 with SMTP id w8mr32895789eef.30.1368819780513; Fri, 17 May 2013 12:43:00 -0700 (PDT) Received: from localhost.localdomain (93-97-149-234.zone5.bethere.co.uk. [93.97.149.234]) by mx.google.com with ESMTPSA id i2sm21096505eeg.2.2013.05.17.12.42.58 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 May 2013 12:42:59 -0700 (PDT) From: Markos Chandras To: buildroot@uclibc.org Date: Fri, 17 May 2013 20:42:40 +0100 Message-Id: <1368819760-11931-1-git-send-email-markos.chandras@gmail.com> X-Mailer: git-send-email 1.8.2.1 Subject: [Buildroot] [PATCH] Makefile: Set default emulation for MIPS64/MIPS64el n64 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Markos Chandras binutils set the default emulation for MIPS64/MIPS64el to elf32btsmipn32 and elf32ltsmipn3 respectively. This breaks linking for programs calling the linker directly without passing the appropriate emulation parameter (-m). Unfortunately, binutils do not provide a way to set the default emulation when building the linker therefore we export the LDEMULATION variable to set the preferred emulation ourselves. This fixes http://autobuild.buildroot.net/results/0f2a760b94069ac915d856cd1ae1998e5483807a/ and possibly other build failures as well. Signed-off-by: Markos Chandras --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 5d2a7ae..d80d12d 100644 --- a/Makefile +++ b/Makefile @@ -354,6 +354,10 @@ ifeq ($(BR2_ECLIPSE_REGISTER),y) TARGETS+=toolchain-eclipse-register endif +ifeq ($(BR2_MIPS_NABI64),y) +export LDEMULATION=elf64btsmip +endif + include fs/common.mk TARGETS+=target-post-image