This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: objdump or nm exported symbols (was: Linker exposing private symbols)
- From: Jeffrey Walton <noloader at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Mon, 3 Sep 2018 11:21:15 -0400
- Subject: Re: objdump or nm exported symbols (was: Linker exposing private symbols)
- References: <CAH8yC8=NziSpjz+pYKiYSujSnVWH7nfta5=T-rRFOGRoHwFEtg@mail.gmail.com> <60c0a0b6-5110-513c-64fc-8b56b77ce984@redhat.com>
- Reply-to: noloader at gmail dot com
On Mon, Sep 3, 2018 at 10:58 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi Jeff,
>
>> 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 '
>
> [replying for Alan since he is probably very busy].
>
> No. :-(
>
> Probably the closest that you will get is:
>
> nm --defined-only --extern-only <foo>
>
> But this will include exported data symbols as well as function symbols.
Ack, thanks.
Jeff