Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 32831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:49:30+00:00 2026-05-10T13:49:30+00:00

How do I list the symbols being exported from a .so file? If possible,

  • 0

How do I list the symbols being exported from a .so file? If possible, I’d also like to know their source (e.g. if they are pulled in from a static library).

I’m using gcc 4.0.2, if that makes a difference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:49:31+00:00Added an answer on May 10, 2026 at 1:49 pm

    The standard tool for listing symbols is nm, you can use it simply like this:

    nm -gD yourLib.so 

    If you want to see symbols of a C++ library, add the ‘-C’ option which demangle the symbols (it’s far more readable demangled).

    nm -gDC yourLib.so 

    If your .so file is in elf format, you have two options:

    Either objdump (-C is also useful for demangling C++):

    $ objdump -TC libz.so  libz.so:     file format elf64-x86-64  DYNAMIC SYMBOL TABLE: 0000000000002010 l    d  .init  0000000000000000              .init 0000000000000000      DF *UND*  0000000000000000  GLIBC_2.2.5 free 0000000000000000      DF *UND*  0000000000000000  GLIBC_2.2.5 __errno_location 0000000000000000  w   D  *UND*  0000000000000000              _ITM_deregisterTMCloneTable 

    Or use readelf:

    $ readelf -Ws libz.so Symbol table '.dynsym' contains 112 entries:    Num:    Value          Size Type    Bind   Vis      Ndx Name      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND      1: 0000000000002010     0 SECTION LOCAL  DEFAULT   10      2: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND free@GLIBC_2.2.5 (14)      3: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __errno_location@GLIBC_2.2.5 (14)      4: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_deregisterTMCloneTable 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

List comprehensions can be useful in certain situations, but they can also be rather
Some platforms mandate that you provide a list of a shared library's external symbols
List Comprehension for me seems to be like the opaque block of granite that
My list (@degree) is built from a SQL command. The NVL command in the
I'm making a program to calculate latency from a tcpdump/pcap file and I want
I am attempting to pull some information from my tnsnames file using regex. I
List Comprehension is a very useful code mechanism that is found in several languages,
List<String> nameList = new List<String>(); DropDownList ddl = new DropDownList(); List is populated here,
List<tinyClass> ids = new List<tinyClass(); ids.Add(new tinyClass(1, 2)); bool b = ids.IndexOf(new tinyClass(1, 2))
Consider: List<String> someList = new ArrayList<>(); // add "monkey", "donkey", "skeleton key" to someList

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.