From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 29836 invoked from network); 18 Sep 1998 14:12:44 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 18 Sep 1998 14:12:44 -0000 Received: from codonics.codonics.com (mta@codonics.codonics.com [206.99.131.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA08049 for ; Fri, 18 Sep 1998 10:13:19 -0400 Received: from codonics.com ([206.99.131.162]) by codonics.codonics.com (Post.Office MTA v3.1.2 release (PO203-101c) ID# 0-33978U100L100S0) with ESMTP id AAA10217; Fri, 18 Sep 1998 14:12:28 +0000 Message-ID: <36026A42.EE6B712D@codonics.com> Date: Fri, 18 Sep 1998 10:12:18 -0400 From: borsburn@codonics.com (Bret Orsburn) Organization: Codonics, Inc. X-Mailer: Mozilla 4.04 [en] (WinNT; U) MIME-Version: 1.0 To: egcs@cygnus.com CC: axp-list@redhat.com Subject: Re: Dynamic Linkage Problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit egcs group: More details about this problem: (Dynamic linkage of a very large library under RedHat Alpha Linux 5.1 + egcs-1.1b + glibc-2.0.7-19). There appear to be two different species of JMP_SLOT relocation records in the .so file. Here is an example: 0000000000440208 JMP_SLOT _OB_destroy__27OCI_IIOP_ConnectorInfo_impl 0000000000440210 JMP_SLOT _$_22OCI_IIOP_TransportInfo 0000000000440218 JMP_SLOT remove__t8OBFixSeq1ZQ215OBSelectReactor11HandlerInfoUi 0000000000440220 JMP_SLOT _OB_narrowHelp__C16OCI_AcceptorInfoPCc 0000000000440228 JMP_SLOT _OB_destroy__26OCI_IIOP_AcceptorInfo_impl 0000000000440238 JMP_SLOT _duplicate__26OBGIOPClientWorkerReactiveP26OBGIOPClientWorkerReactive 000000000044e9e8 JMP_SLOT __get_eh_context 0000000000440248 JMP_SLOT kind__C14CORBA_TypeCode 0000000000440258 JMP_SLOT accept 0000000000440268 JMP_SLOT __12OBGIOPServerP12OCI_Acceptor 0000000000440270 JMP_SLOT _timeout__12CORBA_Object 0000000000440278 JMP_SLOT OBGetInAddr__FPCcR11sockaddr_in 0000000000440280 JMP_SLOT OBMarshalCountMulti__FPCsRUiUi Note that the offset for __get_eh_context is out of sequence. Out of the 1135 JMP_SLOT relocation records in the .so file, 70 of them, salted throughout the list, form a separate sequence at a somewhat higher offset than the rest. When the code executes, it tries to jump to the .got address at offset 0x440240, which should be the entry for __get_eh_context. Instead, this address contains an unrelocated offset. In short, there is a disagreement between the code and the relocation records as to which .got slots correspond to which function. (The code references are relative to gp, so tracing the problem further requires more knowledge than I possess about how gp is managed.) ---- Bret Orsburn borsburn@codonics.com