From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8044 invoked by alias); 20 Mar 2005 22:36:55 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 7989 invoked from network); 20 Mar 2005 22:36:49 -0000 Received: from unknown (HELO omta04ps.mx.bigpond.com) (144.140.83.156) by sourceware.org with SMTP; 20 Mar 2005 22:36:49 -0000 Received: from modra.org ([144.136.221.26]) by omta04ps.mx.bigpond.com with ESMTP id <20050320223647.TNIV24909.omta04ps.mx.bigpond.com@modra.org>; Sun, 20 Mar 2005 22:36:47 +0000 Received: by bubble.modra.org (Postfix, from userid 500) id B46F219FF64; Mon, 21 Mar 2005 09:06:47 +1030 (CST) Date: Mon, 21 Mar 2005 02:07:00 -0000 From: Alan Modra To: "H. J. Lu" Cc: binutils@sources.redhat.com Subject: Re: PATCH: Store ELF section index for input file Message-ID: <20050320223647.GP21148@bubble.modra.org> Mail-Followup-To: "H. J. Lu" , binutils@sources.redhat.com References: <20050317195051.GA9484@lucon.org> <20050317205827.GA10787@lucon.org> <20050319094400.GI21148@bubble.modra.org> <20050319175700.GA19299@lucon.org> <20050320054946.GN21148@bubble.modra.org> <20050320060831.GC29959@lucon.org> <20050320191857.GA24114@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050320191857.GA24114@lucon.org> User-Agent: Mutt/1.4i X-SW-Source: 2005-03/txt/msg00605.txt.bz2 On Sun, Mar 20, 2005 at 11:18:57AM -0800, H. J. Lu wrote: > 2005-03-20 H.J. Lu > > * elf-bfd.h (elf_backend_data): Add int to > elf_backend_section_from_shdr. > (bfd_elf_section_data): Update this_idx to indicate it will be > used for input file. > (_bfd_elf_make_section_from_shdr): Add int. > * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise. > > * elf.c (_bfd_elf_make_section_from_shdr): Take section index > and use it to set this_idx in bfd_elf_section_data. > (bfd_section_from_shdr): Pass shindex to > _bfd_elf_make_section_from_shdr. > (_bfd_elf_section_from_bfd_section): Use this_idx in > bfd_elf_section_data to find section index. > > * elf32-arm.c (elf32_arm_section_from_shdr): Take section > index and pass it to _bfd_elf_make_section_from_shdr. > * elf32-i370.c(i370_elf_section_from_shdr): Likewise. > * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise. > * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise. > * elf32-v850.c (v850_elf_section_from_shdr): Likewise. > * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise. > * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise. > * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise. > * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise. > * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise. OK for mainline. > @@ -1060,7 +1060,8 @@ struct bfd_elf_section_data > unsigned int rel_count2; > > /* The ELF section number of this section. Only used for an output > - file. */ > + file. Also used for an input file as the index into the ELF > + section array, elf_elfsections. */ Change this to simply "/* The ELF section number of this section. */" -- Alan Modra IBM OzLabs - Linux Technology Centre