본문 바로가기
Research/Linux

라이브러리 목록 알아내기 ldd - ld-linux.so

by sunnyan 2008. 12. 22.
728x90

ldd는 스크립트 일 뿐이고... ld-linux.so 로 사용 가능하다...

/lib/ld-linux.so.2 를 파라미터 없이 실행해보면 아래와 같이 사용법이 출력된다.

[root@localhost tools]# /lib/ld-linux.so.2
Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]
You have invoked `ld.so', the helper program for shared library executables.
This program usually lives in the file `/lib/ld.so', and special directives
in executable files using ELF shared libraries tell the system's program
loader to load the helper program from this file.  This helper program loads
the shared libraries needed by the program executable, prepares the program
to run, and runs it.  You may invoke this helper program directly from the
command line to load and run an ELF executable file; this is like executing
that file itself, but always uses this helper program from the file you
specified, instead of the helper program file specified in the executable
file you run.  This is mostly of use for maintainers to test new versions
of this helper program; chances are you did not intend to run this program.

  --list                list all dependencies and how they are resolved
  --verify              verify that given object really is a dynamically linked
                        object we can handle
  --library-path PATH   use given PATH instead of content of the environment
                        variable LD_LIBRARY_PATH
  --inhibit-rpath LIST  ignore RUNPATH and RPATH information in object names
                        in LIST

728x90

'Research > Linux' 카테고리의 다른 글

파일 자르기 split  (0) 2009.02.02
유용한 VIM plugin  (1) 2008.12.23
history 사용법  (0) 2008.12.16
pmap  (0) 2008.12.15
object dump file 정렬  (1) 2008.12.11