From patchwork Mon Aug 4 09:57:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 34826 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A682921F5F for ; Mon, 4 Aug 2014 09:57:28 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id kx10sf48847135pab.0 for ; Mon, 04 Aug 2014 02:57:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=3dOxkOOYkmb/RABFusJFZWp5txQzhqPuA6dT7iWVJ0Q=; b=dPuVPb62fQlauJIlANR2hRJkiD1T1VjeXgBsJ1aUx925YsHfJkKo5FqInK/QTaB4IO TNCJsZyculyiazO+Eind1+qqnJ6K/r8Wf05FZwzxldSgSuHq2VLdpVqpszUM2ddyjny3 Q1YTxkfuhF6p/8+Dlz+4St2b6w8AMTW9ZvOVCFkJQH0tkdXPYQvItfaMRkSgRpj7RtY+ 4YSBgJKsRpnBrdszPN6J2bEnWaBcBngPXBJmHmmdWJmtY1vaLpTvDTOAakupH4sFMu1r 4c4LOQNbFd1lW5dsyBgKRe1zttE7rIyesBy0lgaX7COz/2trAAhKFCgD13VSfD1HbFli VyzA== X-Gm-Message-State: ALoCoQlzxjGhHAM81/rjhWbvrI0Vg+NN66vuK5+pc/nzB9I3Ikmu1L5YpDOREsqL2jC3EvYVQyLP X-Received: by 10.66.252.6 with SMTP id zo6mr8739475pac.40.1407146247739; Mon, 04 Aug 2014 02:57:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.133 with SMTP id b5ls2046260qgb.43.gmail; Mon, 04 Aug 2014 02:57:27 -0700 (PDT) X-Received: by 10.220.163.130 with SMTP id a2mr1898810vcy.52.1407146247616; Mon, 04 Aug 2014 02:57:27 -0700 (PDT) Received: from mail-vc0-x232.google.com (mail-vc0-x232.google.com [2607:f8b0:400c:c03::232]) by mx.google.com with ESMTPS id da7si11625991vec.28.2014.08.04.02.57.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 02:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::232 as permitted sender) client-ip=2607:f8b0:400c:c03::232; Received: by mail-vc0-f178.google.com with SMTP id la4so10653847vcb.37 for ; Mon, 04 Aug 2014 02:57:27 -0700 (PDT) X-Received: by 10.52.248.42 with SMTP id yj10mr8733843vdc.50.1407146247482; Mon, 04 Aug 2014 02:57:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp291793vcb; Mon, 4 Aug 2014 02:57:27 -0700 (PDT) X-Received: by 10.66.162.130 with SMTP id ya2mr22665557pab.26.1407146245303; Mon, 04 Aug 2014 02:57:25 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id ip4si17021430pbd.223.2014.08.04.02.57.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Aug 2014 02:57:25 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-return-84392-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 18196 invoked by alias); 4 Aug 2014 09:57:10 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: List-Unsubscribe: , List-Subscribe: List-Archive: List-Post: , List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@sourceware.org Received: (qmail 18186 invoked by uid 89); 4 Aug 2014 09:57:10 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f170.google.com Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com) (209.85.212.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 04 Aug 2014 09:57:09 +0000 Received: by mail-wi0-f170.google.com with SMTP id f8so5957782wiw.1 for ; Mon, 04 Aug 2014 02:57:06 -0700 (PDT) X-Received: by 10.180.73.236 with SMTP id o12mr28679710wiv.22.1407146225326; Mon, 04 Aug 2014 02:57:05 -0700 (PDT) Received: from localhost.localdomain (cpc6-seac21-2-0-cust453.7-2.cable.virginm.net. [82.1.113.198]) by mx.google.com with ESMTPSA id m8sm42321637wjy.35.2014.08.04.02.57.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Aug 2014 02:57:04 -0700 (PDT) From: Will Newton To: binutils@sourceware.org Subject: [PATCH] ARM: Add support for armeb-*-eabi* Date: Mon, 4 Aug 2014 10:57:00 +0100 Message-Id: <1407146220-5608-1-git-send-email-will.newton@linaro.org> X-IsSubscribed: yes X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::232 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 At the moment it is possible to configure binutils for these triples but the resulting linker defaults to little endian with huge numbers of testsuite failures, which on the face of it does not appear to make much sense. This patch makes the behaviour similar to armeb-elf and the testsuite is clean. bfd/ChangeLog: 2014-08-04 Will Newton * config.bfd: Default armeb-*-eabi* to big endian. ld/ChangeLog: 2014-08-04 Will Newton * configure.tgt: Default armeb-*-eabi* to big endian. --- bfd/config.bfd | 2 +- ld/configure.tgt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bfd/config.bfd b/bfd/config.bfd index 1950ca0..3272076 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -328,7 +328,7 @@ case "${targ}" in targ_defvec=arm_elf32_le_vec targ_selvecs=arm_elf32_be_vec ;; - armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-*) + armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*) targ_defvec=arm_elf32_be_vec targ_selvecs=arm_elf32_le_vec ;; diff --git a/ld/configure.tgt b/ld/configure.tgt index 33fb378..fc99a54 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -95,7 +95,8 @@ arm-*-netbsd*) targ_emul=armnbsd; arm-*-nto*) targ_emul=armnto ;; arm-*-openbsd*) targ_emul=armnbsd ;; arm-*-rtems*) targ_emul=armelf ;; -armeb-*-elf) targ_emul=armelfb ;; +armeb-*-elf | armeb-*-eabi*) + targ_emul=armelfb ;; arm-*-elf | arm*-*-eabi*) targ_emul=armelf ;; arm*-*-symbianelf*) targ_emul=armsymbian;;