-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Most are "[section .text]" and "[334 Others]" when using -d compileunits
so no much useful information :/
#213
Comments
Hi, thanks for your kind words. Please note that the On the other hand, Good luck! |
@haberman Thanks for the reply! I do use
|
I would not be surprised if most of the size originated from this line. Try using |
@mraleph Thank you very much for the reply! From the official doc,
I only use c++ in this one .so file, so IMHO using a dynamic library will be bigger since the unused parts in the dynamic lib cannot be deleted. Moreover, my c++ code uses just very simple STL things. I only use Please correct me if I am wrong. Thank you very much! |
@fzyzcjy my suggestion was more about debugging the code size issue. if you switch to shared library and you see the size drop (and unattributed portion disappear) then you know where it came from. |
@mraleph Great suggestion! I will have a look. Thanks! |
I'm going to close this for now, please re-open if you have more problems. |
@mraleph Hi I make an experiment using the
result:
Therefore, it seems that More info on the apk file (I build in debug mode; but the thing should be similar imho) are as follows. So the c++_shared argument does work. Therefore, I wonder what I should try next? Thank you very much! P.S. The binary has changed since half a year has passed; but it does not change very much. |
Hi thanks for this wonderful library! I am using it to examine a
.so
generated by Android NDK. However, I cannot find much useful information:Most are
[section .text]
and[334 Others]
. Thus, I cannot do anything to make my .so file smaller :(I would appreciate it if any advice could be provided. I am really new to this area. Thank you so much!
P.S. The source code is like, several simple c++ file using OpenCV library. So the "opencv" words in the output looks normal. But everything else seems strange :/
Judge from the below full output, I suspect that, only some
opencv/3rdparty
code has symbols attached, and any other thing does not? However, when I useobjdump -syms ./build/vision_utils/intermediates/cmake/debug/obj/arm64-v8a/libvision_utils.so | grep calc_local_stats
I do see output00000000000bf720 g F .text 000004e0 _Z16calc_local_statsRN2cv3MatES1_S1_Phi
(wherecalc_local_stats
is a function in my cpp file). However, when grep forbinarization.cpp
(my source file name), I do find nothing. Maybe this indicate that the symbol exists but the filenames does not?Here is the full output:
The text was updated successfully, but these errors were encountered: