From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25815 invoked by alias); 26 Jul 2006 00:13:54 -0000 Received: (qmail 25807 invoked by uid 22791); 26 Jul 2006 00:13:53 -0000 X-Spam-Check-By: sourceware.org Received: from hq.tensilica.com (HELO mailapp.tensilica.com) (65.205.227.29) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Jul 2006 00:13:51 +0000 Received: from localhost ([127.0.0.1] ident=amavis) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1G5X26-0007TG-2p for binutils@sources.redhat.com; Tue, 25 Jul 2006 17:13:50 -0700 Received: from mailapp.tensilica.com ([127.0.0.1]) by localhost (mailapp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25501-07 for ; Tue, 25 Jul 2006 17:13:49 -0700 (PDT) Received: from heron.hq.tensilica.com ([192.168.11.123]) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1G5X25-0007TA-Mu for binutils@sources.redhat.com; Tue, 25 Jul 2006 17:13:49 -0700 Received: from [192.168.11.123] (heron.hq.tensilica.com [192.168.11.123]) by heron.hq.tensilica.com (Postfix) with ESMTP id 852A5AC20B for ; Tue, 25 Jul 2006 17:13:49 -0700 (PDT) Message-ID: <44C6B3BD.2040705@tensilica.com> Date: Wed, 26 Jul 2006 00:13:00 -0000 From: Bob Wilson User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 To: binutils@sources.redhat.com Subject: [Xtensa] fix another problem with removal of inconsistent sections Content-Type: multipart/mixed; boundary="------------070300030108040604080208" Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00311.txt.bz2 This is a multi-part message in MIME format. --------------070300030108040604080208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 401 This is a follow-on patch to the one I applied yesterday. Sections being discarded need to have their output_section set to the absolute section. Tested with an xtensa-linux target and committed on the mainline. 2006-07-25 Bob Wilson * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections): Set discarded section's output_section to bfd_abs_section_ptr. --------------070300030108040604080208 Content-Type: text/plain; name="ld-linkonce-fix2.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ld-linkonce-fix2.diff" Content-length: 611 Index: emultempl/xtensaelf.em =================================================================== RCS file: /cvs/src/src/ld/emultempl/xtensaelf.em,v retrieving revision 1.13 diff -u -p -r1.13 xtensaelf.em --- emultempl/xtensaelf.em 25 Jul 2006 00:20:09 -0000 1.13 +++ emultempl/xtensaelf.em 26 Jul 2006 00:07:40 -0000 @@ -1249,6 +1249,7 @@ xtensa_strip_inconsistent_linkonce_secti case lang_input_section_enum: if (is_inconsistent_linkonce_section (s->input_section.section)) { + s->input_section.section->output_section = bfd_abs_section_ptr; *s_p = s_next; continue; } --------------070300030108040604080208--