Jeffrey Walton
2018-08-27 12:04:17 UTC
...
$ g++ -o sha256_wrapper.so -g2 -O3 -shared -fPIC -ffunction-sections
-fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden
sha256_wrapper.o ./libcryptopp.a -Wl,--gc-sections
$ nm -gCD sha256_wrapper.so | grep ' T ' | wc -l
Alan, Since I have you on the line...$ g++ -o sha256_wrapper.so -g2 -O3 -shared -fPIC -ffunction-sections
-fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden
sha256_wrapper.o ./libcryptopp.a -Wl,--gc-sections
$ nm -gCD sha256_wrapper.so | grep ' T ' | wc -l
Is there a more succinct way to objdump or nm only exported symbols,
without warts like:
nm -gCD sha256_wrapper.so | grep ' T '
Jeff