상세 컨텐츠

본문 제목

READELF 명령어로 심볼 리스트 확인하기

개발 환경/Window

by cepiloth 2019. 2. 25. 17:13

본문

728x90
반응형

ELF 구조 


https://lotus.tistory.com/29 -> 정리가 잘 되어 있으니 따로 정리 하기 보단 참고


명령어


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 Usage: readelf <option(s)> elf-file(s)
 Display information about the contents of ELF format files
 Options are:
  ---all               Equivalent to: ---------I
  ---file-header       Display the ELF file header
  ---program-headers   Display the program headers
     --segments          An alias for --program-headers
  ---section-headers   Display the sections' header
     --sections          An alias for --section-headers
  -g --section-groups    Display the section groups
  -t --section-details   Display the section details
  -e --headers           Equivalent to: -h -l -S
  -s --syms              Display the symbol table
     --symbols           An alias for --syms
  --dyn-syms             Display the dynamic symbol table
  -n --notes             Display the core notes (if present)
  -r --relocs            Display the relocations (if present)
  -u --unwind            Display the unwind info (if present)
  -d --dynamic           Display the dynamic section (if present)
  -V --version-info      Display the version sections (if present)
  -A --arch-specific     Display architecture specific information (if any).
  -c --archive-index     Display the symbol/file index in an archive
  -D --use-dynamic       Use the dynamic section info when displaying symbols
  -x --hex-dump=<number|name>
                         Dump the contents of section <number|name> as bytes
  -p --string-dump=<number|name>
                         Dump the contents of section <number|name> as strings
  -R --relocated-dump=<number|name>
                         Dump the contents of section <number|name> as relocated bytes
  -w[lLiaprmfFsoRt] or
  --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,
               =frames-interp,=str,=loc,=Ranges,=pubtypes,
               =trace_info,=trace_abbrev,=trace_aranges]
                         Display the contents of DWARF2 debug sections
  -I --histogram         Display histogram of bucket list lengths
  -W --wide              Allow output width to exceed 80 characters
  @<file>                Read options from <file>
  -H --help              Display this information
  -v --version           Display the version number of readelf
cs

사용법


1
2
readelf --s sample.so > result.txt
#sample.so 파일에 있는 심볼과 헤더정보를 파이프라인을 이용하여 result.txt 파일을 생성한다. 
cs


728x90
반응형

관련글 더보기

댓글 영역