[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mklibs.py, unresolved symbol

On Sun Sep 16, 2001 at 06:01:39PM -0400, Daniel Jacobowitz wrote:
> You probably want to check by architecture what to use instead of
> hardcoding 2.2.3...  It's not much work - just:
> 	objcopy -j .interp -O binary /bin/ls foo
> 	cat foo
> (being aware that foo will be a null, rather than newline, terminated
> string).
> ld-linux.so.2 is standard on some architectures, and ld.so.1 is
> standard on others.

I think this should work if we are native
	find /lib -type l -name ld* | tail -n1

if cross compiling, something like this should work
    FOO=`gcc -print-search-dirs| grep ^libraries| sed -e 's/^libraries: //' -e 's/:/ /g'`
    for each in $FOO; do find $each -type l -name ld* 2>/dev/null;done | tail -n1


Erik B. Andersen   email:  andersee@debian.org, formerly of Lineo
--This message was written using 73% post-consumer electrons--

Reply to: