Answer the question
In order to leave comments, you need to log in
Android NDK: Is there a case in objcopy from Android NDK or ARM SDK that --redefine-sym works? Do you know if this is a bug or what?
There is an ELF library, ARM v7 architecture, you need to rename the function.
1. readelf --syms libToClone.so
Conclusion:
...
9: 00000550 55 FUNC GLOBAL DEFAULT 7 Java_com_ourconcurrent_MainActivity_wonderFoo
...
objcopy --redefine-sym Java_com_ourconcurrent_MainActivity_wonderFoo=Java_com_rou1997_MainActivity_wonderFoo libToClone.so libResult.so
readelf --syms libResult.so
...
9: 00000550 55 FUNC GLOBAL DEFAULT 7 Java_com_ourconcurrent_MainActivity_wonderFoo
...
--strip-symbol
doesn't work anywhere else listed either.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question