From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25449 invoked by alias); 18 Feb 2013 19:41:10 -0000 Received: (qmail 25386 invoked by uid 22791); 18 Feb 2013 19:41:08 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,KAM_STOCKGEN,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Feb 2013 19:41:03 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1IJf31W006980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Feb 2013 14:41:03 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r1IJf1Ag007659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 18 Feb 2013 14:41:01 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [0/10] RFC: remove obj_section field Date: Mon, 18 Feb 2013 19:41:00 -0000 Message-ID: <87txp98l6a.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00467.txt.bz2 This series removes general_symbol_info::obj_section. The immediate benefit of doing this is that it shrinks all symbols by a whole pointer. This is a reasonably good memory savings. This series also has the nice effect of regularizing section indices: now the SYMBOL_SECTION is the same (modulo minor weirdness, see patch #6) as the BFD section index. This series also supports my long-term goal of "objfile splitting". At least patches 2, 3, and 4 go in this direction, by removing one symbol->objfile backlink, and by introducing "bound minimal symbols". I'll describe this more in those patches. I've built and regtested this series on x86-64 Fedora 16, on PPC Fedora 18 (gcc110 in the compile farm), and on HP-UX. I also built and regtested it on x86-64 Fedora 16 using -gstabs+. However, it could certainly use more testing and inspection. The individual patch messages will point out some of the questionable bits. Joel, I will push a new branch for you to test, if you don't mind. I'll send email when it is ready. Tom