OSDN Git Service

Update drafts for v3.79
[linuxjm/LDP_man-pages.git] / draft / 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 .\"
20 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
21 .\" Translated Sat May 23 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
22 .\" Updated & Modified Wed Jan 6 1999 by NAKANO Takeo
23 .\" Updated & Modified Wed Jan 16 21:05:41 JST 2002
24 .\"                 by Yuichi SATO <ysato@h4.dion.ne.jp>
25 .\" Updated 2013-05-04, Akihiro MOTOKI <amotoki@gmail.com>
26 .\"
27 .TH LDD 1 2014\-10\-02 "" "Linux Programmer's Manual"
28 .SH 名前
29 ldd \- 共有ライブラリへの依存関係を表示する
30 .SH 書式
31 \fBldd\fP [\fIoption\fP]... \fIfile\fP...
32 .SH 説明
33 \fBldd\fP はコマンドラインで指定したプログラムや共有ライブラリについて、 それぞれで必要とされる共有ライブラリを表示する。
34 .SS セキュリティ
35 .\" Mainline glibc's ldd allows this possibility (the line
36 .\"      try_trace "$file"
37 .\" in glibc 2.15, for example), but many distro versions of
38 .\" ldd seem to remove that code path from the script.
39 通常の場合、 \fBldd\fP は標準の動的リンカー (\fBld.so\fP(8) 参照) を \fBLD_TRACE_LOADED_OBJECTS\fP 環境変数に
40 1 をセットして起動する。 \fBLD_TRACE_LOADED_OBJECTS\fP に 1
41 をセットすると、リンカーはライブラリの依存関係を表示する。但し、状況次第では、依存関係の情報を得るのにプログラムを直接実行するバージョンの \fBldd\fP
42 が存在する。したがって、信頼できない実行ファイルに対しては「決して」 \fBldd\fP
43 を使っては「ならない」。任意のコードを実行することにつながるからである。信頼できない実行ファイルを扱う、より安全な別の方法としては次のようにするとよい。
44
45     $ objdump \-p /path/to/program | grep NEEDED
46 .SH オプション
47 .TP 
48 \fB\-\-version\fP
49 \fBldd\fP のバージョン番号を表示する。
50 .TP 
51 \fB\-v\ \-\-verbose\fP
52 シンボルのバージョン情報などを含めた全ての情報を表示する。
53 .TP 
54 \fB\-u\ \-\-unused\fP
55 使用されていない直接の依存関係を表示する (glibc 2.3.4 以降)。
56 .TP 
57 \fB\-d\ \-\-data\-relocs\fP
58 リロケーションを実行し、足りないオブジェクトについてレポートする (ELF のみ)。
59 .TP 
60 \fB\-r\ \-\-function\-relocs\fP
61 足りないオブジェクトや関数についてレポートする (ELF のみ)。
62 .TP 
63 \fB\-\-help\fP
64 .\" .SH NOTES
65 .\" The standard version of
66 .\" .B ldd
67 .\" comes with glibc2.
68 .\" Libc5 came with an older version, still present
69 .\" on some systems.
70 .\" The long options are not supported by the libc5 version.
71 .\" On the other hand, the glibc2 version does not support
72 .\" .B \-V
73 .\" and only has the equivalent
74 .\" .BR \-\-version .
75 .\" .LP
76 .\" The libc5 version of this program will use the name of a library given
77 .\" on the command line as-is when it contains a \(aq/\(aq; otherwise it
78 .\" searches for the library in the standard locations.
79 .\" To run it
80 .\" on a shared library in the current directory, prefix the name with "./".
81 使用法を表示する。
82 .SH バグ
83 \fBldd\fP は a.out 共有ライブラリでは動作しない。
84 .PP
85 .\" .SH AUTHOR
86 .\" David Engel.
87 .\" Roland McGrath and Ulrich Drepper.
88 \fBldd\fP は非常に古い a.out プログラム (\fBldd\fP のサポートがコンパイラに追加される以前にビルドされたようなプログラム)
89 では動作しない。 このようなプログラムに対して \fBldd\fP を用いると、プログラムは \fIargc\fP = 0 で実行される。結果は予想不可能である。
90 .SH 関連項目
91 \fBsprof\fP(1), \fBpldd\fP(1), \fBld.so\fP(8), \fBldconfig\fP(8)
92 .SH この文書について
93 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
94 である。プロジェクトの説明とバグ報告に関する情報は
95 http://www.kernel.org/doc/man\-pages/ に書かれている。