Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Dynamic Linkage Problem
@ 1998-09-18 14:12 Bret Orsburn
  1998-09-19  4:45 ` Richard Henderson
  0 siblings, 1 reply; 4+ messages in thread
From: Bret Orsburn @ 1998-09-18 14:12 UTC (permalink / raw)
  To: egcs; +Cc: axp-list

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


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

* Re: Dynamic Linkage Problem
  1998-09-18 14:12 Dynamic Linkage Problem Bret Orsburn
@ 1998-09-19  4:45 ` Richard Henderson
       [not found]   ` <3603CE50.20257C9C@voicenet.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Henderson @ 1998-09-19  4:45 UTC (permalink / raw)
  To: Bret Orsburn, egcs; +Cc: axp-list

On Fri, Sep 18, 1998 at 10:12:18AM -0400, Bret Orsburn wrote:
> (Dynamic linkage of a very large library under RedHat Alpha Linux 5.1 +
> egcs-1.1b + glibc-2.0.7-19).

Yep, a binutils bug fixed day before yesterday.  The problem being
that there were missing RELATIVE dynamic relocations for the secondary
.got.plt entries that get created when the initial .got subsegment 
gets too big.

H.J. put out a new binutils minor release containing the fix.


r~


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

* Re: Dynamic Linkage Problem
       [not found]     ` <19980919160954.A24422@dot.cygnus.com>
@ 1998-09-21 15:19       ` Uncle George
  0 siblings, 0 replies; 4+ messages in thread
From: Uncle George @ 1998-09-21 15:19 UTC (permalink / raw)
  To: Richard Henderson; +Cc: H.J. Lu, axp-list@redhat.com

it appears the h.j. lu fixed it as it appears to be in the redhat rawhide series
( like ver -12 ) - at least for me. I stated to him, when he responded, the the
real problem was that there were bogus  section pointers ( due to a malloc ,
rather that a zalloc ) that was un-inited when the alpha specific code
indexed/skiped around these empty sections.

i believe I an happy now, although i seem to be always at the bleeding edge, and
want to produce a fairly stable JAVA/JDK ( from javasoft) withoutout dying from
LD,egcs,gcc, gdb, and a still unstable 2.0.35 kernel. :(

Richard Henderson wrote:

> On Sat, Sep 19, 1998 at 11:31:29AM -0400, Uncle George wrote:
> >     can u ( if u havent allready ) fix a LD bug related to the alpha. the
>
>
> Can you still replicate this?  Some time ago I thought the real cause
>




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

* Re: Dynamic Linkage Problem
       [not found] <m0zK8Ka-00038xC@ocean.lucon.org>
@ 1998-09-22 16:44 ` Bret Orsburn
  0 siblings, 0 replies; 4+ messages in thread
From: Bret Orsburn @ 1998-09-22 16:44 UTC (permalink / raw)
  To: rth, H.J. Lu; +Cc: egcs, axp-list

Thanks for your help with this problem.

Another win for Open Source!

----

	Bret Orsburn
	borsburn@codonics.com


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

end of thread, other threads:[~1998-09-22 16:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-18 14:12 Dynamic Linkage Problem Bret Orsburn
1998-09-19  4:45 ` Richard Henderson
     [not found]   ` <3603CE50.20257C9C@voicenet.com>
     [not found]     ` <19980919160954.A24422@dot.cygnus.com>
1998-09-21 15:19       ` Uncle George
     [not found] <m0zK8Ka-00038xC@ocean.lucon.org>
1998-09-22 16:44 ` Bret Orsburn

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