From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19855 invoked by alias); 9 May 2005 22:35:01 -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 19821 invoked from network); 9 May 2005 22:34:54 -0000 Received: from unknown (HELO sccrmhc14.comcast.net) (204.127.202.59) by sourceware.org with SMTP; 9 May 2005 22:34:54 -0000 Received: from lucon.org ([24.6.212.230]) by comcast.net (sccrmhc14) with ESMTP id <2005050922345401400epdrme>; Mon, 9 May 2005 22:34:54 +0000 Received: by lucon.org (Postfix, from userid 1000) id 3F273649BC; Mon, 9 May 2005 15:34:54 -0700 (PDT) Date: Mon, 09 May 2005 23:06:00 -0000 From: "H. J. Lu" To: binutils@sources.redhat.com Subject: PATCH: Don't use removed section for bound symbols Message-ID: <20050509223454.GA13885@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2005-05/txt/msg00356.txt.bz2 When a section is removed from the output, we shouldn't use it for section bound symbols. H.J. ---- 2005-05-09 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): Don't use the removed section. --- ld/emultempl/elf32.em.removed 2005-05-09 15:15:49.000000000 -0700 +++ ld/emultempl/elf32.em 2005-05-09 15:30:13.000000000 -0700 @@ -1460,6 +1460,8 @@ gld${EMULATION_NAME}_provide_bound_symbo const char *end) { asection *s = bfd_get_section_by_name (output_bfd, sec); + if (s && bfd_section_removed_from_list (output_bfd, s)) + s = NULL; _bfd_elf_provide_section_bound_symbols (&link_info, s, start, end); }