From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12657 invoked from network); 11 Sep 1998 14:51:55 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 11 Sep 1998 14:51:55 -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 KAA21136 for ; Fri, 11 Sep 1998 10:51:52 -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 AAA1701 for ; Fri, 11 Sep 1998 14:50:50 +0000 Message-ID: <35F938B4.F419EBFB@codonics.com> Date: Fri, 11 Sep 1998 10:50:28 -0400 From: borsburn@codonics.com (Bret Orsburn) Organization: Codonics, Inc. X-Mailer: Mozilla 4.04 [en] (WinNT; U) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Problem with Large Shared Libs? References: <199809101745.NAA01813@adder.cs.Virginia.EDU> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Greg Lindahl wrote: > Bret Orsburn wrote: > > So, there is a size limit: A 64K limit on the .got section. What utility is > > telling you that? I just get a seg fault at run time. > > ld complains about the .got limitation. From looking at the bfd > source, it looks like this is a hard limit. > > > From what I've been able to make out, our program is trying to jump to an > > address that has not been adjusted to reflect the load address of the target. > > That would be something I've never seen. Well, actually, it could be > what I currently have; gdb isn't being very helpful, and I have to > strip before linking because some of the stabs are longer than 4K, > another limit in the file formats. > > As for your program, you're sure the same program works on another > platform? It pays to work to make sure the tools are guilty and not > your code. The program works on the Alpha when statically linked. The libs were developed on another platform. I wish I could find an authoritative statement of this .got limitation. The statically linked version of our prog has a .got section that is considerably larger than 64K, but seems to work fine. I can speculate on how that could be, but the uncertainty leaves the issue unresolved. What is the bfd you refer to above? The search engine at the LDP hasn't heard of it. The best doco I've found so far is the ELF spec (but not the Alpha version) and a DEC OSF/1 Version 2 "Calling Standard for AXP Systems" spec. ---- Bret Orsburn borsburn@codonics.com