Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Help!! gcc and LD : Strange problem
@ 1999-10-08  4:00 Leslie Donaldson
  1999-10-09  4:00 ` Michal Jaegermann
  0 siblings, 1 reply; 3+ messages in thread
From: Leslie Donaldson @ 1999-10-08  4:00 UTC (permalink / raw)



Hello,
  I have bizare gcc /ld problem that I am trying to resolve. 
My binary currently has the folloing dynamic linking:

[root@shadowdragon em86-2.2]# ldd /usr/bin/em86
        libm.so.6.1 => /lib/libm.so.6.1 (0x000000004011e000)
        libdl.so.2.1 => /lib/libdl.so.2.1 (0x0000000040254000)
        libc.so.6.1 => /lib/libc.so.6.1 (0x0000000040358000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000040000000)


And I need to have this dynamic linking

[root@shadowdragon em86-2.2]# ldd /usr/bin/em86
        libm.so.6.1 => /lib/libm.so.6.1 (0x000000004011e000)
        libdl.so.2.1 => /lib/libdl.so.2.1 (0x0000000040254000)
        libc-2.0.7.so => /lib/libc-2.0.7.so (0x0000000040358000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000040000000)

As you can see I am changing the libc to be a Specific version. Digging
through the ld info page dosen't show me any way to do this.

Note this HAS to be dynamically linked not static. sigh.


Any ideas?

Leslie Donaldson




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

* Re: Help!! gcc and LD : Strange problem
  1999-10-08  4:00 Help!! gcc and LD : Strange problem Leslie Donaldson
@ 1999-10-09  4:00 ` Michal Jaegermann
  1999-10-09  4:00   ` Leslie Donaldson
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Jaegermann @ 1999-10-09  4:00 UTC (permalink / raw)


Leslie Donaldson (donaldlf@shadowdragon.i10.com) wrote:

:   I have bizare gcc /ld problem that I am trying to resolve. 
: My binary currently has the folloing dynamic linking:

: [root@shadowdragon em86-2.2]# ldd /usr/bin/em86
:         libm.so.6.1 => /lib/libm.so.6.1 (0x000000004011e000)
:         libdl.so.2.1 => /lib/libdl.so.2.1 (0x0000000040254000)
:         libc.so.6.1 => /lib/libc.so.6.1 (0x0000000040358000)
:         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000040000000)


: And I need to have this dynamic linking

: [root@shadowdragon em86-2.2]# ldd /usr/bin/em86
:         libm.so.6.1 => /lib/libm.so.6.1 (0x000000004011e000)
:         libdl.so.2.1 => /lib/libdl.so.2.1 (0x0000000040254000)
:         libc-2.0.7.so => /lib/libc-2.0.7.so (0x0000000040358000)
:         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000040000000)

: As you can see I am changing the libc to be a Specific version. Digging
: through the ld info page dosen't show me any way to do this.

But /lib/libc-2.0.7.so and /lib/libc.so.6.1 are one and the same thing,
at least at the moment.  Still, did you try linking simly specifying
explicitely /lib/libc-2.0.7.so as one of your files on a link list
before system libraries?  Out of curiosity, why do you neeed to be so
explicit?

  Michal

p.s. Asking for help with an address which is not mail deliverable
is really not nice.



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

* Re: Help!! gcc and LD : Strange problem
  1999-10-09  4:00 ` Michal Jaegermann
@ 1999-10-09  4:00   ` Leslie Donaldson
  0 siblings, 0 replies; 3+ messages in thread
From: Leslie Donaldson @ 1999-10-09  4:00 UTC (permalink / raw)


Hello,

Opps sorry about the mail address, I was under RH 6.0 and
em86 dosen't work yet so I used a local copy of pine and forgot
to fix the email address.

Apologies !!!


Michal Jaegermann wrote:
> 
> Leslie Donaldson (donaldlf@shadowdragon.i10.com) wrote:
> 
> :   I have bizare gcc /ld problem that I am trying to resolve.
> : My binary currently has the folloing dynamic linking:
> 
> : [root@shadowdragon em86-2.2]# ldd /usr/bin/em86
> :         libm.so.6.1 => /lib/libm.so.6.1 (0x000000004011e000)
> :         libdl.so.2.1 => /lib/libdl.so.2.1 (0x0000000040254000)
> :         libc.so.6.1 => /lib/libc.so.6.1 (0x0000000040358000)
> :         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000040000000)
> 
> : And I need to have this dynamic linking
> 
> : [root@shadowdragon em86-2.2]# ldd /usr/bin/em86
> :         libm.so.6.1 => /lib/libm.so.6.1 (0x000000004011e000)
> :         libdl.so.2.1 => /lib/libdl.so.2.1 (0x0000000040254000)
> :         libc-2.0.7.so => /lib/libc-2.0.7.so (0x0000000040358000)
> :         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000040000000)
> 
> : As you can see I am changing the libc to be a Specific version. Digging
> : through the ld info page dosen't show me any way to do this.
> 
> But /lib/libc-2.0.7.so and /lib/libc.so.6.1 are one and the same thing,

Sigh This is only under redhat 5.2 (ergo a glibc-2.07 system) when
the users of em86 try to run it under 6.0 (a glibc-2.1.x) system the
dynamic linker does it's job.

> at least at the moment.  Still, did you try linking simly specifying
> explicitely /lib/libc-2.0.7.so as one of your files on a link list

Yes I tried with 
/lib/libc-2.0.7.so
and
-lc-2.0.7

but it dosen't replace the stand libc linkage.

> before system libraries?  Out of curiosity, why do you neeed to be so
> explicit?

Their is a bug in the em86 library (intel emulation code) that when it
tries to open stdout under libc-2.1.x it crashes em86. If I can force
em86 to hard link the entire symbolic name it should force the dynamic
linker
to load the library without the problem.
  My current experiments are with hand editing the em86 binary(emacs
editing)
and replaceing the names by hand. This seems to cause it to link but It
still
dosen't run. I think the problem in this case is that when the kernel
respawns
em86 it is still running the newer ld.so which tries to load a custom
library.
The name escapes we right now and I am under 5.2)
  My other option I guess is do reowk the internals of ld so it will
link
hardcoded, however I was trying to avoid this.
  The third option is to get the NDA and source code for the em86
emulator
library, however that for the last year has been a dead end.

> 
>   Michal
> 
> p.s. Asking for help with an address which is not mail deliverable
> is really not nice.
Sorry,

Leslie Donaldson
-- 
/----------------------------\ Current Contractor: None
|    Leslie F. Donaldson     | Current Customer  : None
|    Computer Contractor     | Skills:
Unix/OS9/VMS/Linux/SUN-OS/C/C++/assembly
| Have Computer will travel. | WWW  :
http://www.cs.rose-hulman.edu/~donaldlf
\----------------------------/ Email: mail://donaldlf@cs.rose-hulman.edu
Goth Code V1.1: GoCS$$ TYg(T6,T9) B11Bk!^1 C6b-- P0(1,7) M+ a24 n---
b++:+
                H6'11" g m---- w+ r+++ D--~!% h+ s10 k+++ R-- Ssw
LusCA++



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

end of thread, other threads:[~1999-10-09  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-08  4:00 Help!! gcc and LD : Strange problem Leslie Donaldson
1999-10-09  4:00 ` Michal Jaegermann
1999-10-09  4:00   ` Leslie Donaldson

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