有时候想查看编译出来的.a文件中,是否包含我们想要的某个函数,那应该如何确认呢?
比如我想查看libcrypto_static.a中是否已经有sha256_block_data_order函数?
可以使用如下方法进行确认:
readelf -a ./obj/STATIC_LIBRARIES/libcrypto_static_intermediates/libcrypto_static.a | grep sha256_block_data_order |grep sha256_block_data_order
结果如下:
2745: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND sha256_block_data_order
14: 0000000000000000 3640 FUNC GLOBAL HIDDEN 2 sha256_block_data_order