On Monday, May 23, 2022 at 9:15:05 PM UTC-7, red floyd wrote:=20
On 5/23/2022 11:09 AM, Andre White wrote:=20
On Monday, May 23, 2022 at 5:28:35 PM UTC+3, red floyd wrote:=20
On 5/22/2022 2:26 PM, Andre White wrote:=20
Need help,=20
How to re-linking runnable object with new library using ELD..=20
=20
Thanks=20
User library, or DLL?=20
=20
User library:=20
=20
eld -change libname $vol.subvol.lib exefile=20
=20
I don't think it's possible for a DLL.=20
Is DLL (Loadfile).=20
I don't think it's possible, and I've looked for ways to do it.=20
-alf doesn't work, nor any other method I've tried.
This is a bit awkward to use, so it might not be a good solution for your=
situation.=20
=20
If the new DLL has the same name as the one you want to replace, you can =
use the DEFINEs or environment variables with names =3D_RLD_LIB_PATH or =3D=
_RLD_FIRST_LIB_PATH to make the loader look first in the location where the=
new DLL is located before it looks in the location where the original DLL =
is located. See the DLL Programmer's Guide for the explanation of those DEF=
INEs and environment variables.=20
=20
If the new library has a different name, you can create a DLL of your own=
with the same name as that of the original DLL, have it reexport the symbo=
ls of the new DLL, then use =3D_RLD_LIB_PATH or =3D_RLD_FIRST_LIB_PATH to g=
et the loader to look in the location of the DLL you created before it look=
s where the original DLL is located. When the loader loads your DLL, it wil=
l also load all the symbols from the new DLL and use them to satisfy the re=
ferences that the original DLL would have been used to satisfy.=20
=20
If there is priv code and/or licensed code involved anywhere in the progr=
am, there are extra security constraints I don't completely understand, but=
they might prevent the above approach from working. (I believe the extra c=
onstraints are needed to prevent a malicious user from using the substituti=
on mechanism to run his code in priv mode.)=20
=20
If you want to try this, but have trouble understanding the explanations =
in the DLL Programmer's Guide, post your questions and someone here might b=
e able to help.
Thanks for your input.
I'm trying to debug on BASE24-EPS related Heap corruption/Memory leaks. Wha=
t I read from Debugging Dynamic Memory, I need to Invoke Native Inspect wit=
h the lib zrtcdll/xrtcdll (to enable memory-debugging support).
The problem is, whatever object related with ACI product I need to run with=
library from ACI (XNLIBN). So, during I'm type "set heap-check on" I will =
get an error "xrtcdll/zrtcdll library not found".
Contact ACI, they can provide a re-linkable version of XNLIBN.
re-linkable version of XRTCDLL.
It really should be shipped as part of the OS distribution.