前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Android下使用objdump查看导出的函数表

Android下使用objdump查看导出的函数表

作者头像
望天
发布2019-08-01 11:11:57
4.3K0
发布2019-08-01 11:11:57
举报
文章被收录于专栏:along的开发之旅

Android下为了查看so的导出函数,有两种方法。

nm -D ffmpeg.so objdump -tT ffmpeg.so

这里推荐第二种方法, 因为遇到问题相对好查,nm在google里稍难匹配到你要的意思。

下面试使用objdump后, 每一行和每一列的数据的意义:

ibcrypto.so: file format elf32-littlearm

SYMBOL TABLE:

00000000 l df *ABS* 00000000 crtbegin_so.c

0003cd20 l F .text 00000010 __on_dlclose

0003cd34 l F .text 00000004 __on_dlclose_late

0000018c l .note.android.ident 00000000 ndk_build_number

0000014c l .note.android.ident 00000000 ndk_version

00000134 l O .note.android.ident 00000098 note_android_ident

COLUMN ONE: the symbol's value

COLUMN TWO: a set of characters and spaces indicating the flag bits that are set on the symbol. There are seven groupings which are listed below:

group one: (l,g,,!) local, global, neither, both.

group two: (w,) weak or strong symbol.

group three: (C,) symbol denotes a constructor or an ordinary symbol.

group four: (W,) symbol is warning or normal symbol.

group five: (I,) indirect reference to another symbol or normal symbol.

group six: (d,D,) debugging symbol, dynamic symbol or normal symbol.

group seven: (F,f,O,) symbol is the name of function, file, object or normal symbol.

COLUMN THREE: the section in which the symbol lives, ABS means not associated with a certain section

COLUMN FOUR: the symbol's size or alignment.

COLUMN FIVE: the symbol's name.

If you want additional information try you man page ;-) or the following links: http://manpages.ubuntu.com/manpages/intrepid/man1/objdump.1.html and http://sourceware.org/binutils/docs/binutils/objdump.html

转自:https://stackoverflow.com/questions/6666805/what-does-each-column-of-objdumps-symbol-table-mean

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019年07月20日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档