From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26187 invoked by alias); 23 Nov 2003 20:00:56 -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 26173 invoked from network); 23 Nov 2003 20:00:55 -0000 Received: from unknown (HELO zok.sgi.com) (192.48.171.6) by sources.redhat.com with SMTP; 23 Nov 2003 20:00:55 -0000 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by zok.sgi.com (8.12.9/8.12.9/linux-outbound_gateway-1.1) with ESMTP id hANL1RJt003331 for ; Sun, 23 Nov 2003 13:01:28 -0800 Received: from quasar.engr.sgi.com (quasar.engr.sgi.com [163.154.6.61]) by cthulhu.engr.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id hANK0sd013776408 for ; Sun, 23 Nov 2003 12:00:54 -0800 (PST) Received: from quasar.engr.sgi.com (localhost [127.0.0.1]) by quasar.engr.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id hANK04gf1074481 for ; Sun, 23 Nov 2003 12:00:44 -0800 (PST) Received: (from davea@localhost) by quasar.engr.sgi.com (SGI-8.12.5/8.12.5/Submit) id hANJxOQs1070080 for gdb-patches@sources.redhat.com; Sun, 23 Nov 2003 11:59:24 -0800 (PST) Date: Sun, 23 Nov 2003 20:00:00 -0000 From: David Anderson Message-Id: <200311231959.hANJxOQs1070080@quasar.engr.sgi.com> To: gdb-patches@sources.redhat.com Subject: Re: [RFC] minimal symbols on mips-irix and overlapping CUs... X-SW-Source: 2003-11/txt/msg00492.txt.bz2 Joel writes: |> > - For MIPS there's this PDR section and it appears to have the function |> > start as well. |> |> I don't believe that the IRIX tools generate .pdr. I might be mistaken |> about that, though. | |I confirm. I checked in a few executables, and couldn't find any section |named .pdr. Quite right. In IRIX pdr is an area in the o32 mdebug (third-eye) debug information, not an elf section. What 'PDR section' above might have referred to: The Elf section. .rtproc is generated in o32 ELF to handle run-time stack walkback, as in C++ or Ada exceptions. In header files the struct is RPDR defined in IRIX '/usr/include/sym.h'. A run-time pdr, slightly different from an mdebug pdr. It is accessed like a variable via the data items _procedure_table, and _procedure_table_size not thru section headers (as a runtime feature) (_procedure_table, procedure_table_size are per shared-library/executable, not global). The data did not exist unless you asked for it, as in CC -32 -exceptions, for example. For o32 we also have (but I am having trouble remembering) in /usr/include/sys/elf.h #define MIPS_PDR_EXCEPTION ".MIPS.pdr_exception" which I cannot at the moment recall how to generate. If anyone cares let me know and I'll find out. Regards, David B. Anderson davea@sgi.com http://reality.sgiweb.org/davea