Re: [uClinux-dev] How to verify that executable is using Shared lib

From: David McCullough (davidm@snapgear.com)
Date: Wed Sep 18 2002 - 10:17:03 EDT


Jivin Benny Chen lays it down ...
> Hi everyone,
> Is there a way to verify if executable is linked using shared library
> in uClinux. I knew that they size is smaller, but is that the case all
> the time.

Firtly check for lib1.so in the romfs/lib directory.  Without that no apps
are being build with shared libs.  I am assuming you are using the
uClinux-dist which is the only really safe way to build uClinux shared libs
at the moment.

Then you can do something like:

	m68k-elf-nm -v user/sash/sh.gdb | grep _current_shared_library_a5_offset_

if its there you are using shared libs,

Cheers,
Davidm

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm@snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:54 EDT