Subject: Re: Fw: LD_PRELOAD in linux emulation
To: =?iso-8859-1?Q?C=E9sar_Catri=E1n_C=2E?= <ccatrian@eml.cc>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 08/30/2005 07:36:47
--ZbmePlECXulV3R7u
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Aug 29, 2005 at 11:17:52PM -0400, C=E9sar Catri=E1n C. wrote:
> Does someone know about the right way to preload a library in the linux l=
ayer
> emulation? I want to preload libaudiooss to linux firefox, but it doesn't=
work.
>=20
> It doesn't work: no library preloaded, or core dump.
What, exactly, makes you say that?
> Methods:=20
> $ LD_PRELOAD=3D/emul/linux/library application
> emul_shell$ LD_PRELOAD=3D/library application
E.g.:
% LD_PRELOAD=3D/emul/linux/lib/libmemusage.so /emul/linux/bin/bash
bash-2.05$ exit
exit
Memory usage summary: heap total: 156817, heap peak: 128569, stack peak: 17=
000
total calls total memory failed calls
malloc| 2665 112791 0
realloc| 14 10590 0 (in place: 2, dec: 0)
calloc| 395 33436 0
free| 122 30169
Histogram for block sizes:
0-15 782 25% =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
16-31 1312 42% =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
32-47 465 15% =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
48-63 50 1% =3D
64-79 259 8% =3D=3D=3D=3D=3D=3D=3D=3D=3D
80-95 143 4% =3D=3D=3D=3D=3D
96-111 3 <1%=20
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
--ZbmePlECXulV3R7u
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQxPwb9goQloHrPnoAQJRuQgAoBEfWcooaBAgzZO692k1O6sxYadN0RMV
D5n95XGffWbSh/yNs7PE0fVEG4XDlBBkpzBnEO7rTJ+D6lr2sVDI2yN5b4TAcCLZ
XV9PvlTBAxSKoNdZXph/4gNghYIfrBC6ZyX4IwSLQ5wVnx+2oKa9mkRZMoVf4nWa
oYzkctMeLeK1hmkHKUiAUgdKHPlJlTQQUfPGkptIRvkEvRgEJ/OOq8eP7dK9ki4o
68sl0K2LQ63FruEapboWM/SkL1GYTzxfiehk45aFJgk5wW6jXGbwWtiW9PdlHrlW
08pbHCGe0KvVOuwmBHiIAk80sVq1VU0AAaszuIHSKPV/KIFkGKjPQw==
=ODj0
-----END PGP SIGNATURE-----
--ZbmePlECXulV3R7u--