Re: Shared Object Problem

From: Colin Renouf (root_at_rs6000.RnREnterprise.dyndns.org)
Date: 02/25/05


Date: Fri, 25 Feb 2005 17:01:37 GMT

There is a trick I have done on other platforms that may work the same...

If you know all of the external method names you can create a new DLL with
the same names and entry points as the other shared objects, with the same
external function names and entry points but no other code. You then
rename the originals and have the new stubs load the real functions if
they are called. It is some work, but is doable - bit probably not
supported. I used to do this on other platforms so I could do tracing....

Cheers

Colin

On Fri, 25 Feb 2005 richardselvan@hotmail.com wrote:

>
>
> Our (old) vendors had delivered a customised product which is deployed
> like this: (using a security analogy)
>
> There is one common dll (common.a). And, for every type of security
> interface, there is one dll (like this: rsa.a, ssl.a, hsm.a, this.a,
> etc., and there is also a default.a). There is a configuration ini
> file, wherein we specify which proptocol is used in the site.
> (protocol=rsa|ssl|hsm) or, if nothing is specified, default.a is
> assumed.
>
> we use only common.a and default.a and there is no way we would be
> using any other protocol. This means all those other dll's are of
> practically no use to us. But every time I use the common.a, all the
> other .a's are loaded as well.
>
> The dump output shows all those files are referred in common.a. Someone
> must have coded, something like the below in common.c
>
> switch (protocol):
> case rsa:
> call_encrypt_in_rsa () ; break ;
> case hsm:
> call_encrypt_in_hsm () ; break ;
> .......
> case default:
> call_encrypt_in_dafault () ;
>
> etc.
>
> The problem is that, every time we use common.a/default.a all those
> sundry dll's are loaded as well, sitting there hogging memory... How do
> we prevent them from loading at all ?
>
> Is there anyway we can tell AIX not to bother loading them ? is there
> any tool using which we can edit the common.a binary to mark all those
> functions as unresolved ?
>
> (we can't go back to the vendors, they have gone since long)....
>
>

Colin Renouf
"AIX is user friendly. It's just choosy who its friends are."



Relevant Pages

  • Re: File greater than 2 GB
    ... For the AIX platform I have checked this and verified it works ... The 2gb limit for exports and sql*loader files in Oracle is caused by ... This means that on many platforms ... Regards, ...
    (AIX-L)
  • Re: IDX
    ... Alpha/OpenVMS platforms. ... implementation to an AIX platform. ... aging hardware and system software. ...
    (comp.lang.mumps)
  • Re: portable makefiles
    ... for Aix, else set them for Linux." ... > are planning on using the GNU compiler and GNU make for all platforms. ...
    (comp.unix.programmer)
  • Re: Shared Libraries : library paths ??
    ... for AIX, I am not developing for AIX, AIX is not amoong the platforms I ... The right people are doing it, in the right place, and libtool is out ... a libtool -like frontend so that my stuff may compile on their platform. ...
    (comp.os.linux.development.system)
  • Re: Shared Libraries : library paths ??
    ... for AIX, I am not developing for AIX, AIX is not amoong the platforms I ... The right people are doing it, in the right place, and libtool is out ... a libtool -like frontend so that my stuff may compile on their platform. ...
    (comp.unix.programmer)