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

Jeffrey Walton noloader@gmail.com
Mon Sep 3 15:21:00 GMT 2018


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



More information about the Binutils mailing list