From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,46129fd054322e75 X-Google-Attributes: gid111c93,public From: Leslie Donaldson Subject: Re: Help!! gcc and LD : Strange problem Date: 1999/10/09 Message-ID: <37FEEE70.56805E07@cs.rose-hulman.edu>#1/1 X-Deja-AN: 534617665 Content-Transfer-Encoding: 7bit References: <7tm7g2$kd0$2@pulp.srv.ualberta.ca> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@verio.net X-Trace: dfw-read.news.verio.net 939454312 208.231.96.20 (Sat, 09 Oct 1999 07:31:52 GMT) Organization: HAHAHAH MIME-Version: 1.0 NNTP-Posting-Date: Sat, 09 Oct 1999 07:31:52 GMT Newsgroups: comp.os.linux.alpha 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++