objdump or nm exported symbols (was: Linker exposing private symbols)
Jeffrey Walton
noloader@gmail.com
Mon Aug 27 12:04:00 GMT 2018
On Sun, Aug 26, 2018 at 4:22 PM, Jeffrey Walton <noloader@gmail.com> wrote:
> ...
> $ 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
>
> Results in:
>
> $ nm -gCD sha256_wrapper.so | grep ' T ' | wc -l
Alan, Since I have you on the line...
Is there a more succinct way to objdump or nm only exported symbols,
without warts like:
nm -gCD sha256_wrapper.so | grep ' T '
Jeff
More information about the Binutils
mailing list