This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch] bfd elfxx-ia64: share code between elf32 and elf64
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Tristan Gingold <gingold at adacore dot com>
- Cc: binutils Development <binutils at sourceware dot org>
- Date: Tue, 17 May 2011 06:04:39 -0700
- Subject: Re: [Patch] bfd elfxx-ia64: share code between elf32 and elf64
- References: <EEEC6C47-1379-4F53-B7C9-C1C539E7A2AB@adacore.com>
On Tue, May 17, 2011 at 5:56 AM, Tristan Gingold <gingold@adacore.com> wrote:
> Hi,
>
> some functions of elfxx-ia64.c are in fact the same when compiled for elf32 and for elf64. ?This patch adds a new file,
> elfxx-ia64.h which declares these functions and compiles them only for elf64.
>
> No regression for linux/gnu ia64 and hpux ia64.
>
> This work is in fact preliminary work to support gnu ld on vms/ia64. ?Although VMS uses elf64, it doesn't use the same shared library
> model. ?Its DSO model is derived from the previous vms one (vector based). 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?
--
H.J.