혹시나 해서 질문 올리는데요 리눅스에서 라이브러리화(.so, .a)한 파일을 역컴파일(?)하여 소스내용을 볼수 있는 방법이 있나요?
라이브러리가 만들어질 때 디버깅 옵션 예를 들면, -ggdb ( DWARF 2), 가지고 있지 않으면 소스를 볼 수 없습니다. 다만 so, a 파일로 부터 Assembly 명령어는 볼 수 있습니다.
아래 링크를 참고하세요.
https://www.hex-rays.com/products/decompiler/index.shtml
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
DWARF 2 option
라이브러리가 만들어질 때 디버깅 옵션 예를 들면, -ggdb ( DWARF 2), 가지고 있지 않으면 소스를 볼 수 없습니다.
다만 so, a 파일로 부터 Assembly 명령어는 볼 수 있습니다.
Hex-Rays사의 Hex-Rays Decompiler라는 상용제품이 있습니다.
아래 링크를 참고하세요.
https://www.hex-rays.com/products/decompiler/index.shtml
댓글 달기