From patchwork Fri Jun 1 10:49:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 923949 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hCCezxkK"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40y1L21BPkz9s1R for ; Fri, 1 Jun 2018 20:49:30 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=DgOPl+YNYRJ1gh9v3gzMUlvvTh92ZrQPF78DAxAhMes=; b=hCC ezxkKnAoLF71bpl+BZYf1HAjQGAZeJHSbzeMjLSlry42v8P9RCpzfo6OhPRX39yGoA8oYTtURD9/G sBgLyEiqYW3qz9VCpQVi589+E/izLI+kZy2CNQnDRbuVTSRrJo8am09AtcfK4ob/cOC6Jyt5aCJvi PHEfVEbTT1LqJkKf++wO5MpplcgwXX8DxqtfPymZAnKOGSa/R9XiJtGdAvwT1QJUn+zQumSu72GA1 JMHg+6o6nJcCnYn2DND1nvDW2Q+kmD+TY8/930efYusgYP1vo3n09ecadVL3w7L6KHGEFYEFTqpmS AIjcqiT3R4+qlLS8VyRiwUy5nTkEhMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fOhcb-0001ee-9V; Fri, 01 Jun 2018 10:49:25 +0000 Received: from smtprelay.synopsys.com ([198.182.60.111]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fOhcY-0001cP-55 for linux-snps-arc@lists.infradead.org; Fri, 01 Jun 2018 10:49:23 +0000 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id BF56E10C1133 for ; Fri, 1 Jun 2018 03:49:08 -0700 (PDT) Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 0B5033030; Fri, 1 Jun 2018 03:49:06 -0700 (PDT) From: Alexey Brodkin To: linux-snps-arc@lists.infradead.org Subject: [PATCH] ARC: Explicitly specify OUTPUT_FORMAT in the linker script Date: Fri, 1 Jun 2018 13:49:04 +0300 Message-Id: <20180601104904.48481-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180601_034922_214230_8870B872 X-CRM114-Status: GOOD ( 10.18 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cupertino Miranda , Vineet Gupta , Alexey Brodkin , linux-kernel@vger.kernel.org, Claudiu Zissulescu MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org It might be a good idea to explicitly specify BFD format depending on -EB/-EL option passed to the linker and not rely on default behavior as we have now. Description of the OUTPUT_FORMAT command is available here: https://sourceware.org/binutils/docs/ld/Format-Commands.html#Format-Commands Signed-off-by: Alexey Brodkin Cc: Cupertino Miranda Cc: Claudiu Zissulescu --- arch/arc/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/kernel/vmlinux.lds.S b/arch/arc/kernel/vmlinux.lds.S index f35ed578e007..0a1affc56d76 100644 --- a/arch/arc/kernel/vmlinux.lds.S +++ b/arch/arc/kernel/vmlinux.lds.S @@ -11,6 +11,7 @@ #include #include +OUTPUT_FORMAT("elf32-littlearc", "elf32-bigarc", "elf32-littlearc") OUTPUT_ARCH(arc) ENTRY(res_service)