diff options
Diffstat (limited to 'usr.bin/ldd')
-rw-r--r-- | usr.bin/ldd/ldd.1 | 3 | ||||
-rw-r--r-- | usr.bin/ldd/ldd.c | 11 |
2 files changed, 9 insertions, 5 deletions
diff --git a/usr.bin/ldd/ldd.1 b/usr.bin/ldd/ldd.1 index 13a13ee..0c3b5e4 100644 --- a/usr.bin/ldd/ldd.1 +++ b/usr.bin/ldd/ldd.1 @@ -1,6 +1,6 @@ .Dd October 22, 1993 .Dt LDD 1 -.Os FreeBSD 1.1 +.Os FreeBSD .Sh NAME .Nm ldd .Nd list dynamic object dependencies @@ -16,6 +16,7 @@ depedencies that are the result of needed shared objects which themselves depend on yet other shared objects. .Sh SEE ALSO .Xr ld 1 , +.Xr ld.so 1 , .Xr nm 1 .Sh HISTORY A diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c index 1072d80..2f54806 100644 --- a/usr.bin/ldd/ldd.c +++ b/usr.bin/ldd/ldd.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ldd.c,v 1.3 1994/02/13 20:42:43 jkh Exp $ + * $Id: ldd.c,v 1.4 1994/06/15 22:41:03 rich Exp $ */ #include <sys/types.h> @@ -91,9 +91,12 @@ char *argv[]; argv++; continue; } - if (read(fd, &hdr, sizeof hdr) != sizeof hdr || - !(N_GETFLAG(hdr) & EX_DYNAMIC) || - hdr.a_entry < __LDPGSZ) { + if (read(fd, &hdr, sizeof hdr) != sizeof hdr + || (N_GETFLAG(hdr) & EX_DPMASK) != EX_DYNAMIC +#if 1 /* Compatibility */ + || hdr.a_entry < __LDPGSZ +#endif + ) { warnx("%s: not a dynamic executable", *argv); (void)close(fd); |