From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30236 invoked by alias); 20 Jul 2002 04:14:34 -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 30229 invoked from network); 20 Jul 2002 04:14:34 -0000 Received: from unknown (63.201.54.26) by sources.redhat.com with QMTP; 20 Jul 2002 04:14:34 -0000 Received: (qmail 29277 invoked by uid 10); 20 Jul 2002 04:14:33 -0000 Received: (qmail 9445 invoked by uid 269); 20 Jul 2002 04:14:28 -0000 Mail-Followup-To: rittle@labs.mot.com, binutils@sources.redhat.com, obrien@freebsd.org, thorpej@wasabisystems.com To: Jason R Thorpe Cc: rittle@labs.mot.com, binutils@sources.redhat.com, obrien@freebsd.org Subject: Re: GCC testsuite run before and after ~2.12.1 upgraded to pre-2.13 References: <200207190209.g6J29RhB010794@latour.rsch.comm.mot.com> <20020719101139.A18919@dr-evil.shagadelic.org> <20020720002339.GR30362@bubble.sa.bigpond.net.au> <20020719175128.A2026@dr-evil.shagadelic.org> <20020720012058.GU30362@bubble.sa.bigpond.net.au> <20020719184609.B2026@dr-evil.shagadelic.org> <20020720015254.GV30362@bubble.sa.bigpond.net.au> <20020719194256.C2026@dr-evil.shagadelic.org> From: Ian Lance Taylor Date: Fri, 19 Jul 2002 21:33:00 -0000 In-Reply-To: <20020719194256.C2026@dr-evil.shagadelic.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00524.txt.bz2 Jason R Thorpe writes: > On Sat, Jul 20, 2002 at 11:22:54AM +0930, Alan Modra wrote: > > > Check all object files involved in the link, including libraries and > > startup files, for a RW .rodata section. I'm guessing you'll find one, > > indicating an assembler or more likely, source problem. > > That's what I figured. No .rodata* sections with the "W" bit set in > any of: > > crt0.o > crtbegin.o > append.o (the test program) > libc.a (or libc.so) > libm.a (or libm.so) > libgcc.a > libstdc++.a > crtend.o > > The problem occurs when the program is linked statically, as well, but > the dynamic linker isn't invokved, so it doesn't croak. The write bit is being set somewhere, and it almost certainly because some writable input section is being mapped to the .rodata output section. Generate a map file using the -Map option, and look at all the input sections to the .rodata output section. Perhaps some input section named other than .rodata* is being included in the output section. Ian