From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109095 invoked by alias); 27 Feb 2020 17:28:30 -0000 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 Received: (qmail 109085 invoked by uid 89); 27 Feb 2020 17:28:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=brgds X-HELO: arjuna.pair.com Received: from arjuna.pair.com (HELO arjuna.pair.com) (209.68.5.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Feb 2020 17:28:28 +0000 Received: by arjuna.pair.com (Postfix, from userid 3006) id 270858A5F5; Thu, 27 Feb 2020 12:28:27 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by arjuna.pair.com (Postfix) with ESMTP id 269FC8A5E9; Thu, 27 Feb 2020 12:28:27 -0500 (EST) Date: Thu, 27 Feb 2020 17:28:00 -0000 From: Hans-Peter Nilsson To: Alan Modra cc: binutils@sourceware.org, KONRAD Frederic Subject: Re: PR24511, nm should not mark symbols in .init_array as "t" In-Reply-To: <20200227070701.GH32593@bubble.grove.modra.org> Message-ID: References: <20190504075723.GJ3195@bubble.grove.modra.org> <1b774bd1-68a9-bcf7-795b-e3c545c4faa6@adacore.com> <20200227065610.GG32593@bubble.grove.modra.org> <20200227070701.GH32593@bubble.grove.modra.org> User-Agent: Alpine 2.20.16 (BSF 172 2016-09-29) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00562.txt.bz2 On Thu, 27 Feb 2020, Alan Modra wrote: > On Thu, Feb 27, 2020 at 05:26:10PM +1030, Alan Modra wrote: > > * syms.c (stt): Trim off all but 'e', 'i' and 'p' entries. > > (coff_section_type): Adjust comment. > > (decode_section_type): Likewise. Call coff_section_type before > > decode_section_type. > > (bfd_decode_symclass): Use 'c' for common sections other than > > the standard one. > > With the bfd_decode_symclass change, ld SIZEOF test fails due to > data_end being reported as type '?'. > > Does this look a reasonable solution, Hans-Peter? > > bfd/ > * mmo.c (mmo_scan): Set SEC_DATA for .data. > ld/ > * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change. > * testsuite/ld-mmix/sec-2.d: Likewise. > * testsuite/ld-mmix/sec-3.d: Likewise. > * testsuite/ld-mmix/sec-4.d: Likewise. > * testsuite/ld-mmix/spec802.d: Likewise. > * testsuite/ld-mmix/spec803.d: Likewise. > * testsuite/ld-mmix/spec804.d: Likewise. > * testsuite/ld-mmix/spec805.d: Likewise. > * testsuite/ld-mmix/spec806.d: Likewise. > * testsuite/ld-mmix/spec807.d: Likewise. > * testsuite/ld-mmix/spec808.d: Likewise. Correcting data sections to be classified as DATA? Certainly LGTM! :) Thanks. brgds, H-P