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: -a --all Equivalent to: -h -l -S -s -r -d -V -A -I -h --file-header Display the ELF file header -l --program-headers Display the program headers --segments An alias for --program-headers -S --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 -h -s sample.so > result.txt #sample.so 파일에 있는 심볼과 헤더정보를 파이프라인을 이용하여 result.txt 파일을 생성한다. | cs |
D8016 '/ZI'과(와) '/Gy-' 명령줄 옵션이 호환되지 않습니다. (0) | 2020.01.13 |
---|---|
명령 인수 (0) | 2020.01.06 |
C1083 'atlapp.h' not found. Visual Studio 2012 # WTL 설치 (0) | 2018.12.24 |
init_seg({ compiler | lib | user | "section-name" [, func-name]} ) (0) | 2018.12.21 |
fatal error: bits/c++config.h 그런 파일 이나 디렉토리가 없습니다. (0) | 2018.12.19 |
댓글 영역