Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: aoki@faerie.CS.Berkeley.EDU (Paul M. Aoki)
Subject: Re: OSF/1 linking: "gp relocation out-of-range errors..."
Date: 12 Apr 1994 04:50:12 GMT	[thread overview]
Message-ID: <2od9a4$qg2@agate.berkeley.edu> (raw)
In-Reply-To: 9404111757.AA11915@isd.csc.com

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


  reply	other threads:[~1994-04-12  4:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-04-11 18:32 OSF/1 linking: "gp relocation out-of-range errors..." Reuven Gurvich
1994-04-12  4:50 ` Paul M. Aoki [this message]
1994-04-15  5:52   ` Paul M. Aoki
1994-04-15 16:28     ` John T. Kohl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox