c - Using objdump/readelf and extern variable -


i have library ab.so compose of 2 sources file a.m, a.h , b.m, b.h

in a.m have define variable foo , in b.m have declare extern.

now using readelf/objdump know , how can see variable foo in a.o file, b.o , ab.so?

thanks lot

tricky question. must realize readelf/objdump not display c code result, assembly code. if prepared read that, go ahead , disassembly application objdump -d ab.so , relevant code there.

there bunch of readelf/objdump tutorials available on web. don't afraid them.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -