From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20397 invoked by alias); 24 Nov 2002 22:22:18 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20307 invoked from network); 24 Nov 2002 22:22:16 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 24 Nov 2002 22:22:16 -0000 Received: (from jimb@localhost) by zenia.red-bean.com (8.11.6/8.11.6) id gAOM3hW05963; Sun, 24 Nov 2002 17:03:43 -0500 To: Klee Dienes Cc: binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] Add stabs entries for coalesced symbols. References: From: Jim Blandy Date: Sun, 24 Nov 2002 14:22:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-11/txt/msg00591.txt.bz2 I like these docs a lot better, thanks. Klee Dienes writes: > (speaking of > which, I should mention that these docs are extensively plagiarized > from docs written by another engineer at Apple; I'm just adapting them > as best I can from the release notes for use in the stabs document) Does that engineer have an assignment on file? Or does Apple have a blanket assignment in place? > +The static link editor divides up a coalesced section on the > +boundaries of the symbols in that section, associating the bytes of > +the section after each symbol with the preceding symbol. An object > +file is considered malformed if a coalesced section does not have a > +symbol at the first address of the section. > + > +To allow the linker to properly manage the debug information for > +coalesced symbols, the stabs entries for a given coalesced symbol must > +be preceded by @code{N_BNSYM} and terminated with @code{N_ENSYM}. > +These stabs must be at the start and end of the given coalesced > +symbol, respectively. That is: the value of the N_BNYSM stab should be the start address of the coalesced portion (the same value as the symbol that begins the portion), and the value of the N_ENSYM stab should be the end address of the coalesced prtion (the same value as the next coalesced symbol, or the end of the whole coalesced section). If that's right, then please include that language, or something equally explicit; I'm happy to see this committed.