[Top][All Lists]

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

Re: [Jailkit-users] ldd on FreeBSD

From: Peter Veerman
Subject: Re: [Jailkit-users] ldd on FreeBSD
Date: Tue, 31 Oct 2006 22:40:39 +0100
User-agent: Thunderbird (Windows/20060909)


Olivier Sessink wrote:
> can you give some more examples of what ldd returns on FreeBSD?
> 1) a binary with multiple libraries
address@hidden /]# which vim
address@hidden /]# ldd /usr/local/bin/vim
        libncurses.so.6 => /lib/libncurses.so.6 (0x2817b000)
        libperl.so => /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
        libutil.so.5 => /lib/libutil.so.5 (0x282b9000)
        libtcl84.so.1 => /usr/local/lib/libtcl84.so.1 (0x282c5000)
        libruby18.so.18 => /usr/local/lib/libruby18.so.18 (0x28364000)
        libm.so.4 => /lib/libm.so.4 (0x2841e000)
        libpthread.so.2 => /usr/lib/libpthread.so.2 (0x28434000)
        libc.so.6 => /lib/libc.so.6 (0x28459000)
        libcrypt.so.3 => /lib/libcrypt.so.3 (0x28536000)

> 2) a statically linked binary
address@hidden /]# which bash
address@hidden /]# ldd /usr/local/bin/bash
ldd: /usr/local/bin/bash: not a dynamic executable

> 3) an executable script file
address@hidden ~/w00tchoot]# ldd chrootapache.sh
ldd: chrootapache.sh: not a dynamic executable
> 4) any regular file
address@hidden ~/w00tchoot]# ldd /var/log/messages
ldd: /var/log/messages: not a dynamic executable

address@hidden ~/w00tchoot]# ldd filedoesnotexist
ldd: filedoesnotexist: No such file or directory
> I'll try to write a function based on this info, but I need to rely on
> your testing.

No Problem!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]