This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
objdump or nm exported symbols (was: Linker exposing private symbols)
- From: Jeffrey Walton <noloader at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Mon, 27 Aug 2018 08:04:17 -0400
- Subject: objdump or nm exported symbols (was: Linker exposing private symbols)
- Reply-to: noloader at gmail dot com
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