diff options
| author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-02-08 04:08:57 +0000 |
|---|---|---|
| committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-02-08 04:08:57 +0000 |
| commit | 97b79abc86d4c1a2f6addb7536bb2ef591238a65 (patch) | |
| tree | ff869e905f9f8078a84396e3e38379e64545c34b /usr.bin | |
| parent | a060acb15402ad7f1309e0c3c3c0b4bffe01270e (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/ldd/ldd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c index 0d86e66c272b..fc204672f4a2 100644 --- a/usr.bin/ldd/ldd.c +++ b/usr.bin/ldd/ldd.c @@ -171,7 +171,13 @@ char *argv[]; warnx("%s: not a dynamic executable", *argv); file_ok = 0; } else if (hdr.elf.e_type == ET_DYN) { - is_shlib = 1; + if (hdr.elf.e_ident[EI_OSABI] & ELFOSABI_FREEBSD) { + is_shlib = 1; + } else { + warnx("%s: not a FreeBSD ELF shared " + "object", *argv); + file_ok = 0; + } } } else { warnx("%s: not a dynamic executable", *argv); |
