From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2e6b516eefec4e51 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-04-11 21:50:12 PST Path: gmd.de!xlink.net!howland.reston.ans.net!agate!faerie.CS.Berkeley.EDU!aoki From: aoki@faerie.CS.Berkeley.EDU (Paul M. Aoki) Newsgroups: comp.sys.dec Subject: Re: OSF/1 linking: "gp relocation out-of-range errors..." Date: 12 Apr 1994 04:50:12 GMT Organization: Sequoia 2000 - University of California at Berkeley Message-ID: <2od9a4$qg2@agate.berkeley.edu> References: <9404111757.AA11915@isd.csc.com> Reply-To: aoki@postgres.Berkeley.EDU (Paul M. Aoki) NNTP-Posting-Host: faerie.cs.berkeley.edu rgurvich@isd.csc.com (Reuven Gurvich) writes: >I wonder if there is an easy way for tracing OSF/1 linking errors >reported as: >"gp relocation out-of-range errors have occured and bad object file produced >(corrective action must be taken)"?. The problem seems to be occuring when >linking rather large executable (non-shared) with /usr/lib/libXt.a. assuming you're running 1.3: if your problem is the same as the one i ran into a few weeks ago, you need to go back to the OSF/1 CDROM and install the "enhancement" package CMPDEVENH130 (in /ALPHA/COMPILERS). this will require you to install Fortran_RTL/OTABASE101 first -- don't ask me why. the /bin/ld you get when you install 1.3 doesn't permit multiple GOT segments. this means: if your executable has more than ~8192 externally-addressable things, it won't link. (for me, it blew up at about 2000 external symbols because there were 6000-odd other text/data addresses in the global offset table.) the "enhancement" fixed this for me. this actually turns out to be documented in the 1.3 release notes (which invariably sit in the sysadmin's office beneath a tall stack of binders, CDROM caddies and UniForum toys). i can't say i understand why, if this fix made it onto the CDROM and into the documentation, it wasn't just installed in the regular 1.3 distribution .. a related question: i've noticed that executables with multiple GOTs have RLD_VERSION (for the runtime loader, /sbin/loader) set to 2, while single-GOT executables have RLD_VERSION set to 1. at least, that's what i see using "odump -Dp". this has actually caused problems due to version mismatch while trying to run multi-GOT executables. i suspect the machine on which i saw the problem had been incompletely upgraded from 1.2 -- any comments? -- Paul M. Aoki | CS Div., Dept. of EECS, UCB | aoki@postgres.Berkeley.EDU | Berkeley, CA 94720 | ...!uunet!ucbvax!aoki