so 라이브러리 파일 내용 보기

scoh98의 이미지

전에 xxx.a 정적 라이브러리 파일의 경우 ar t xxx.a 명령어로 안에 내용을 볼 수 있었는데 xx.so 파일 안의 내용은 어떤 명령어로 보나요?
감사합니다.

hys545의 이미지

scoh98 wrote:
전에 xxx.a 정적 라이브러리 파일의 경우 ar t xxx.a 명령어로 안에 내용을 볼 수 있었는데 xx.so 파일 안의 내용은 어떤 명령어로 보나요?
감사합니다.

so 파일은 압축파일이 아니고 그냥 하나의 파일입니다.
그냉 mcedit같은거로 보면 됩니다.

즐린

scoh98의 이미지

mcedit 로 안에 내용을 전혀 해석할 수 가 없습니다.
안에 무슨 내용이 들어 있는지 테이블 정보라도 볼 수 있으면 좋겠네요. 전에 ar 같은 경우 무스무슨 .o 파일이 들어 있는지 볼 수 있었는데 말이죠.

ganadist의 이미지

strip이 안되어 있다면 nm 명령으로 살펴볼 수 있습니다.

ganadist audio-inline # nm .libs/liborg-gnome-audio-inline.so
0000305c A _DYNAMIC
0000319c A _GLOBAL_OFFSET_TABLE_
         w _Jv_RegisterClasses
0000304c d __CTOR_END__
00003048 d __CTOR_LIST__
00003054 d __DTOR_END__
00003050 d __DTOR_LIST__
00002044 r __FRAME_END__
00003058 d __JCR_END__
00003058 d __JCR_LIST__
00001e80 r __PRETTY_FUNCTION__.0
0000324c A __bss_start
         w __cxa_finalize@@GLIBC_2.1.3
00001c00 t __do_global_ctors_aux
00000fb0 t __do_global_dtors_aux
00003244 d __dso_handle
         w __gmon_start__
         U __guard@@GLIBC_2.3.2
00001054 t __i686.get_pc_thunk.bx
         U __stack_smash_handler@@GLIBC_2.3.2
0000324c A _edata
00003254 A _end
00001c30 T _fini
         U _gst_bin_type
         U _gst_object_type
00000cdc T _init
00000f80 t call_gmon_start
         U camel_data_wrapper_decode_to_stream
         U camel_medium_get_content_object
         U camel_medium_get_type
         U camel_mime_part_get_content_type
         U camel_object_cast
         U camel_object_ref
         U camel_object_unref
         U camel_stream_flush
         U camel_stream_fs_new_with_name
         U camel_stream_printf
0000324c b completed.1
         U e_icon_factory_get_image
         U e_mktemp
         U em_format_html_add_pobject
00001010 t frame_dummy
         U g_assert_warning
         U g_free
         U g_object_set
         U g_signal_connect_data
         U g_strdup_printf
         U g_type_check_instance_cast
         U gst_bin_add_many
         U gst_element_factory_make
         U gst_element_link_many
         U gst_element_set_state
         U gst_init_check
         U gst_object_unref
         U gst_thread_new
         U gtk_box_get_type
         U gtk_box_pack_end_defaults
         U gtk_button_new
         U gtk_container_add
         U gtk_hbutton_box_new
         U gtk_widget_show
00003250 b org_gnome_audio_class_id_counter
00001910 t org_gnome_audio_inline_add_button
00001a10 t org_gnome_audio_inline_button_panel
00001af0 T org_gnome_audio_inline_format
00001150 t org_gnome_audio_inline_pause_clicked
00001250 t org_gnome_audio_inline_play_clicked
00001060 t org_gnome_audio_inline_pobject_free
000011d0 t org_gnome_audio_inline_stop_clicked
00003248 d p.0
         U printf@@GLIBC_2.0
         U puts@@GLIBC_2.0
         U strcasecmp@@GLIBC_2.0
         U unlink@@GLIBC_2.0

----
데스크탑 프로그래머를 꿈꾸는 임베디드 삽질러

scoh98의 이미지

먼저 답변 감사합니다.
그런데 ar 처럼 안에 무슨무슨 파일들이 들어 있는지 목차 정보를 알 수 는 없을까요?
감사합니다.

hys545의 이미지

scoh98 wrote:
먼저 답변 감사합니다.
그런데 ar 처럼 안에 무슨무슨 파일들이 들어 있는지 목차 정보를 알 수 는 없을까요?
감사합니다.

so파일은 a처럼 여러 파일 묵은게 아니고 그냔 하나의 퍼일입니다
그래서 위의 님처럼 함수 목록만 볼수 있ㅅ,ㅂㄴ;디

즐린

ganadist의 이미지

아무생각없이 답글 올렸는데 (rss로 구독하다가 바로 열어버려서 -ㅅ-) 질답란으로 옮겨야 할듯 한데요..

----
데스크탑 프로그래머를 꿈꾸는 임베디드 삽질러

익명 사용자의 이미지

'ldd -r -d -v' 명령은 어떨까요?

pynoos의 이미지

hys545 wrote:
scoh98 wrote:
먼저 답변 감사합니다.
그런데 ar 처럼 안에 무슨무슨 파일들이 들어 있는지 목차 정보를 알 수 는 없을까요?
감사합니다.

so파일은 a처럼 여러 파일 묵은게 아니고 그냔 하나의 퍼일입니다
그래서 위의 님처럼 함수 목록만 볼수 있ㅅ,ㅂㄴ;디

so 파일은 마치 /bin/ls 가 어떤 object로 만들어졌는지 알 수 없는 것처럼 알 수 없습니다.

library로 불리는 archive와 shared object 라는 것은 엄밀히 말해서는 필요시에 library안의 뭔가를 빼 쓸 수 있는 것(archive)와 그렇지 않은(shared object) 차이가 있습니다.

와나의 이미지

패키지명도 동일해야 한다는걸 알고 문제 해결했습니다!!

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.