From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17212 invoked by alias); 28 Jan 2006 20:36:41 -0000 Received: (qmail 17051 invoked by uid 48); 28 Jan 2006 20:36:39 -0000 Date: Sat, 28 Jan 2006 20:36:00 -0000 Subject: [Bug java/26007] New: initialized final static data should go in .rodata, not .data X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "green at redhat dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-01/txt/msg03108.txt.bz2 List-Id: For the following code... public class b { public static final int FOOBAR = 555; } ..I would expect to see FOOBAR in .rodata. However gcj currently places this in .data. If you poke through the .jar.so files we have in Fedora Core you'll see big chunks of .data that should actually .rodata. -- Summary: initialized final static data should go in .rodata, not .data Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: green at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26007