From patchwork Sun Apr 22 22:20:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Hope X-Patchwork-Id: 154305 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 32337B6FAA for ; Mon, 23 Apr 2012 08:21:03 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1335738064; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: MIME-Version:Received:From:Date:Message-ID:Subject:To:Cc: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=Hazt3tl SRSis1SHud1VL7qkXzww=; b=QBMxmgQi5YL8VEDFGzWSz1zgQE9Q8QER1kGEV23 KAj8nt1AnHIs5fKb9f+8lxEuuvTrwgqpifIpyfwU4PMtkNu1U3ZvGP625/D8LG1t 2VcqUR7KvzocDsX3XL6irfWHRSYtK23YrfiSNhdl90rWJneswf9apowd9JG+b4C7 EnH0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:MIME-Version:Received:From:Date:Message-ID:Subject:To:Cc:Content-Type:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=MKP+wj/bXtkpHwxy/ZxurNOscQK6Mo7sH/H3EZWG9/83idMleeFHZRi5VcaxY0 VspuD+vLvEoZ2kGpHQFHEc2ilykIJayOPt/EOvnzJbGK5AZ5VgJDTKGmImyuqxax P5HJBYYHZbCuEYIxJwCb2pp3+w3Z7tosa84dOZsXE0gIw=; Received: (qmail 6575 invoked by alias); 22 Apr 2012 22:20:57 -0000 Received: (qmail 6557 invoked by uid 22791); 22 Apr 2012 22:20:56 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wi0-f173.google.com (HELO mail-wi0-f173.google.com) (209.85.212.173) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Apr 2012 22:20:42 +0000 Received: by wibhq7 with SMTP id hq7so1907773wib.8 for ; Sun, 22 Apr 2012 15:20:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type :x-gm-message-state; bh=GhkETN/yef0kLWA38fPNbfGcvWNp/Xg8jDjsN6NJO1I=; b=gtk9HJf586ncs8yUGGO9LaG2jgN9Xd6NwiRmBpC5UNwQC2j8884J1hgTo4ObAP8qB0 yKcl4faeYxIkt1o7egnQe9vJ6kCYlyj5c7hJDUYQZKQAQYkKD6Jg+6DG4tWwZgTe83uD B26FtfPxoojMDDEISrSfgWzto+w7191s5VsX6tHOWnI65fjtm9v9ZRgBeJN90YywUzZ0 0Q05iXEo2h+BbDZFD23or2NybM6XjdFxr7ImemCbugVx3he5uhyM1ZfARw7v8+Z5djIw 9+5jgRU6ir0Xqxt8zyfKzCCOKp+NCb7AYRK3mmmOpnYODVwnLUNMGF67BSrRKM+UVAa5 JrhA== Received: by 10.216.138.135 with SMTP id a7mr8723953wej.19.1335133241366; Sun, 22 Apr 2012 15:20:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.48.135 with HTTP; Sun, 22 Apr 2012 15:20:21 -0700 (PDT) From: Michael Hope Date: Mon, 23 Apr 2012 10:20:21 +1200 Message-ID: Subject: [PATCH v2] ARM: Use different linker path for hardfloat ABI To: GCC Patches Cc: cross-distro@lists.linaro.org, libc-ports@sourceware.org X-Gm-Message-State: ALoCoQlSqcK4LpwgoCJb784rI22UzkuWkdXFVH7YoHXcGsNBB7L6JQx1u8HMnIqIWolttJm+VJPf X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Change the dynamic linker path for ARM hard float executables. Matches the path discussed and agreed on last week[1]. Carlos will follow up with the matching patch to GLIBC[2]. I'm happy to if he's busy. OK for trunk? -- Michael [1] http://sourceware.org/ml/libc-ports/2012-04/msg00060.html [2] http://sourceware.org/ml/libc-ports/2012-04/msg00064.html 2012-04-23 Michael Hope * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define. (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define. (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path. diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h index 80bd825..3ddf812 100644 --- a/gcc/config/arm/linux-eabi.h +++ b/gcc/config/arm/linux-eabi.h @@ -62,7 +62,11 @@ /* Use ld-linux.so.3 so that it will be possible to run "classic" GNU/Linux binaries on an EABI system. */ #undef GLIBC_DYNAMIC_LINKER -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3" +#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3" +#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3" +#define GLIBC_DYNAMIC_LINKER \ + "%{mfloat-abi=hard:" GLIBC_DYNAMIC_LINKER_HARD_FLOAT "} \ + %{!mfloat-abi=hard:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "}" /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to use the GNU/Linux version, not the generic BPABI version. */