This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

objdump or nm exported symbols (was: Linker exposing private symbols)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]