From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21526 invoked by alias); 17 May 2011 13:04:56 -0000 Received: (qmail 21516 invoked by uid 22791); 17 May 2011 13:04:55 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_FX X-Spam-Check-By: sourceware.org Received: from mail-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 May 2011 13:04:40 +0000 Received: by qwa26 with SMTP id 26so330945qwa.0 for ; Tue, 17 May 2011 06:04:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.26.211 with SMTP id f19mr416488qac.328.1305637480000; Tue, 17 May 2011 06:04:40 -0700 (PDT) Received: by 10.229.182.7 with HTTP; Tue, 17 May 2011 06:04:39 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 May 2011 13:04:00 -0000 Message-ID: Subject: Re: [Patch] bfd elfxx-ia64: share code between elf32 and elf64 From: "H.J. Lu" To: Tristan Gingold Cc: binutils Development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00236.txt.bz2 On Tue, May 17, 2011 at 5:56 AM, Tristan Gingold wrot= e: > Hi, > > some functions of elfxx-ia64.c are in fact the same when compiled for elf= 32 and for elf64. =A0This patch adds a new file, > elfxx-ia64.h which declares these functions and compiles them only for el= f64. > > No regression for linux/gnu ia64 and hpux ia64. > > This work is in fact preliminary work to support gnu ld on vms/ia64. =A0A= lthough VMS uses elf64, it doesn't use the same shared library > model. =A0Its DSO model is derived from the previous vms one (vector base= d). This made code reuse difficult. > > Ok for trunk ? > Why not do something similar to SPARC/MIPS to put common codes in a new .c file? --=20 H.J.