From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jerry Miller" To: "David Korn" , Subject: Re: remote XOpenDisplay in Solaris (SunOS 5.6) Date: Tue, 27 Feb 2001 10:56:00 -0000 Message-id: <00a601c0a0ed$2da73500$1e0ef582@cs.sunysb.edu> References: <718D38CAB6E0D011B2C90060970C28A56426E6@EXCHANGESERVER> <016401c09dc7$9dfde9d0$1e0ef582@cs.sunysb.edu> X-SW-Source: 2001-02/msg00285.html I thought I had a clever idea for detection corruption in the XOpenDisplay function. I would simply cast the function address to a char * and dump the contents. Of course, I then remembered my own development of a linker for the 6809 many years ago. I simply reserved space for a JMP statement to be resolved by the linker. So it turns out that what I really need is a load map. I've been through the man pages for ld, but the only reference that looks relevant (but isn't) is -M. Any suggestions? ----- Original Message ----- From: Jerry Miller To: David Korn ; Sent: Friday, February 23, 2001 1:37 PM Subject: Re: remote XOpenDisplay in Solaris (SunOS 5.6) > > ----- Original Message ----- > From: David Korn > To: 'Jerry Miller' ; > Sent: Friday, February 23, 2001 1:03 PM > Subject: RE: remote XOpenDisplay in Solaris (SunOS 5.6) > > > > I believe you can probably use the 'ldd' utility to find out which > shared > > objects an executable needs. If not, 'man ld.so' might point you in the > > right direction. As I said, though, I'm not expert with shared objects. > > Except for the order in which they are listed, every GUI executable > I subjected to ldd (those that bomb opening a remote display and > those that don't) produced the same list: > > libXm.so.3 => /usr/lib/libXm.so.3 > libXt.so.4 => /usr/openwin/lib/libXt.so.4 > libX11.so.4 => /usr/openwin/lib/libX11.so.4 > libm.so.1 => /usr/lib/libm.so.1 > libc.so.1 => /usr/lib/libc.so.1 > libSM.so.6 => /usr/openwin/lib/libSM.so.6 > libICE.so.6 => /usr/openwin/lib/libICE.so.6 > libXext.so.0 => /usr/openwin/lib/libXext.so.0 > libsocket.so.1 => /usr/lib/libsocket.so.1 > libnsl.so.1 => /usr/lib/libnsl.so.1 > libdl.so.1 => /usr/lib/libdl.so.1 > libmp.so.2 => /usr/lib/libmp.so.2 > /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 > > Oh well - still no clues here! > >