From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,da1c89d811e6d0e8 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-11 10:17:31 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!usc!hookup!swrinde!gatech!newsxfer.itd.umich.edu!news.cic.net!locust.cic.net!pauls From: pauls@locust.cic.net (Paul Southworth) Newsgroups: comp.unix.osf.osf1 Subject: Re: any utilities to work with shared libraries? Date: 11 Nov 1994 15:39:11 GMT Organization: CICNet, Inc. Message-ID: <3a036v$grt@spruce.cic.net> References: <39mc5o$6fj@news.nevada.edu> NNTP-Posting-Host: locust.cic.net In article <39mc5o$6fj@news.nevada.edu>, Ron Young wrote: > Does anyone know if there are any utilities to allow me to replace > routines in an existing shared library? Under sunos you could do > this by using the x option of ar. Your memory serves you ill. Under SunOS you got a *static* library that contained *shared* objects, in /usr/lib/shlib.etc, and you did an "ar x" on that to get the goodies out and then build a new shared library. But under SunOS, you still can't extract objects from an existing *shared* library: % ar x /usr/lib/libc.so.1.8 ar: /usr/lib/libc.so.1.8 not in archive format > According to the manual, you use the -shared and -no_archive > options to ld to build shared libs, but I haven't been able > to find anything that will allow you to extract/replace routines > in an existing shared library. There aren't any. > If it makes any difference, I want to be able to replace a couple > of routines in libc.so. What you need is a set of shared objects under OSF/1 that can be used to generate a new shared library. As far as I know, this is not available to you under OSF/1. -- Paul Southworth CICNet Systems Support pauls@cic.net