Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* OSF/1 linking: "gp relocation out-of-range errors..."
@ 1994-04-11 18:32 Reuven Gurvich
  1994-04-12  4:50 ` Paul M. Aoki
  0 siblings, 1 reply; 4+ messages in thread
From: Reuven Gurvich @ 1994-04-11 18:32 UTC (permalink / raw)


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.
Any help is appreciated in advance.

rg

-- 
Adventures of Socketeer - soon in Full Multi-Media on Super-Highway near you...


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF/1 linking: "gp relocation out-of-range errors..."
  1994-04-11 18:32 OSF/1 linking: "gp relocation out-of-range errors..." Reuven Gurvich
@ 1994-04-12  4:50 ` Paul M. Aoki
  1994-04-15  5:52   ` Paul M. Aoki
  0 siblings, 1 reply; 4+ messages in thread
From: Paul M. Aoki @ 1994-04-12  4:50 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF/1 linking: "gp relocation out-of-range errors..."
  1994-04-12  4:50 ` Paul M. Aoki
@ 1994-04-15  5:52   ` Paul M. Aoki
  1994-04-15 16:28     ` John T. Kohl
  0 siblings, 1 reply; 4+ messages in thread
From: Paul M. Aoki @ 1994-04-15  5:52 UTC (permalink / raw)


aoki@postgres.Berkeley.EDU (Paul M. Aoki) writes:
|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:
[my description of CMPDEVENH130 fix]

then he wrote back to say he's using 2.0, which the dec support folks
told me would include the fix for the multi-GOT problem.  hmm.  any 
other takers?

|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?

still no comments on this one.  ah, well.
-- 
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF/1 linking: "gp relocation out-of-range errors..."
  1994-04-15  5:52   ` Paul M. Aoki
@ 1994-04-15 16:28     ` John T. Kohl
  0 siblings, 0 replies; 4+ messages in thread
From: John T. Kohl @ 1994-04-15 16:28 UTC (permalink / raw)


>>>>> "Paul" == Paul M Aoki <aoki@faerie.CS.Berkeley.EDU> writes:
In article <2ola2s$gso@agate.berkeley.edu> aoki@faerie.CS.Berkeley.EDU (Paul M. Aoki) writes:

Paul> then he wrote back to say he's using 2.0, which the dec support folks
Paul> told me would include the fix for the multi-GOT problem.  hmm.  any 
Paul> other takers?

Ah, but DEC OSF/1 V2.0 has CMPDEVENH200 on the distribution CD-ROM:
% ls /cdrom/ALPHA/COMPILERS/
CMPDEVENH200  instctrl
--
John Kohl <jtk@atria.com> or <jtkohl@mit.edu>
working for but not representing:	Atria Software
---------
What are you pretending not to know?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1994-04-15 16:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-04-11 18:32 OSF/1 linking: "gp relocation out-of-range errors..." Reuven Gurvich
1994-04-12  4:50 ` Paul M. Aoki
1994-04-15  5:52   ` Paul M. Aoki
1994-04-15 16:28     ` John T. Kohl

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