OSDN Git Service

62a57458e306d20caa1edc60ade5b35b4dcb43b4
[linuxjm/LDP_man-pages.git] / release / man1 / ldd.1
1 .\" Copyright 1995-2000 David Engel (david@ods.com)
2 .\" Copyright 1995 Rickard E. Faith (faith@cs.unc.edu)
3 .\" Copyright 2000 Ben Collins (bcollins@debian.org)
4 .\"    Redone for GLibc 2.2
5 .\" Copyright 2000 Jakub Jelinek (jakub@redhat.com)
6 .\"    Corrected.
7 .\" Most of this was copied from the README file.
8 .\"
9 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
10 .\" Do not restrict distribution.
11 .\" May be distributed under the GNU General Public License
12 .\" %%%LICENSE_END
13 .\"
14 .\"*******************************************************************
15 .\"
16 .\" This file was generated with po4a. Translate the source file.
17 .\"
18 .\"*******************************************************************
19 .TH LDD 1 2012\-07\-16 "" "Linux Programmer's Manual"
20 .SH 名前
21 ldd \- 共有ライブラリへの依存関係を表示する
22 .SH 書式
23 \fBldd\fP [OPTION]... FILE...
24 .SH 説明
25 \fBldd\fP はコマンドラインで指定したプログラムや共有ライブラリについて、 それぞれで必要とされる共有ライブラリを表示する。
26 .SS Security
27 .\" Mainline glibc's ldd allows this possibility (the line
28 .\"      try_trace "$file"
29 .\" in glibc 2.15, for example), but many distro versions of
30 .\" ldd seem to remove that code path from the script.
31 In the usual case, \fBldd\fP invokes the standard dynamic linker (see
32 \fBld.so\fP(8))  with the \fBLD_TRACE_LOADED_OBJECTS\fP environment variable set
33 to 1, which causes the linker to display the library dependencies.  Be
34 aware, however, that in some circumstances, some versions of \fBldd\fP may
35 attempt to obtain the dependency information by directly executing the
36 program.  Thus, you should \fInever\fP employ \fBldd\fP on an untrusted
37 executable, since this may result in the execution of arbitrary code.  A
38 safer alternative when dealing with untrusted executables is:
39
40     $ objdump \-p /path/to/program | grep NEEDED
41 .SH オプション
42 .TP 
43 \fB\-\-version\fP
44 \fBldd\fP のバージョン番号を表示する。
45 .TP 
46 \fB\-v\ \-\-verbose\fP
47 シンボルのバージョン情報などを含めた全ての情報を表示する。
48 .TP 
49 \fB\-u\ \-\-unused\fP
50 使用されていない直接の依存関係を表示する (glibc 2.3.4 以降)。
51 .TP 
52 \fB\-d\ \-\-data\-relocs\fP
53 リロケーションを実行し、足りないオブジェクトについてレポートする (ELF のみ)。
54 .TP 
55 \fB\-r\ \-\-function\-relocs\fP
56 足りないオブジェクトや関数についてレポートする (ELF のみ)。
57 .TP 
58 \fB\-\-help\fP
59 使用法を表示する。
60 .SH 注意
61 標準的なバージョンの \fBldd\fP は glibc2 に付属している。 libc5 には古いバージョンのものが付属しており、
62 これが入っているシステムもまだ存在する。 libc5 バージョンではロングオプションがサポートされていない。 一方、glibc2 バージョンでは
63 \fB\-V\fP をサポートしておらず、これと同じ意味の \fB\-\-version\fP しかサポートしていない。
64 .LP
65 libc5 バージョンのプログラムでは、 コマンドラインで与えられたライブラリ名に \(aq/\(aq
66 が含まれている場合は、ライブラリ名をそのまま用いる。 \(aq/\(aq が含まれていない場合は、標準的なパスからライブラリを検索する。
67 カレントディレクトリにある共有ライブラリに対して実行するには、 名前にプレフィックス "./" を付けること。
68 .SH バグ
69 \fBldd\fP は a.out 共有ライブラリでは動作しない。
70 .PP
71 .\" .SH AUTHOR
72 .\" David Engel.
73 .\" Roland McGrath and Ulrich Drepper.
74 \fBldd\fP は非常に古い a.out プログラム (\fBldd\fP のサポートがコンパイラに追加される以前にビルドされたようなプログラム)
75 では動作しない。 このようなプログラムに対して \fBldd\fP を用いると、プログラムは \fIargc\fP = 0 で実行される。結果は予想不可能である。
76 .SH 関連項目
77 \fBld.so\fP(8), \fBldconfig\fP(8)
78 .SH この文書について
79 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.51 の一部
80 である。プロジェクトの説明とバグ報告に関する情報は
81 http://www.kernel.org/doc/man\-pages/ に書かれている。