Soname
In Unix and Unix-like operating systems, a soname is a field of data in a shared object file.[src] The soname is a string, which is used as a "logical name" (i.e., identifier) describing the functionality of the object.[src] Typically, that name is equal to the filename of the library, or to a prefix thereof, e.g.[src] libc.so.6 .[src]
In Unix and Unix-like operating systems, a soname is a field of data in a shared object file.[src] The soname is a string, which is used as a "logical name" (i.e., identifier) describing the functionality of the object.[src] Typically, that name is equal to the filename of the library, or to a prefix thereof, e.g.[src] libc.so.6 .[src] ==Name== The soname is often used to provide version backwards-compatibility information.[src] For instance, if versions 1.0 through 1.9 of the shared library "libx" provide identical interfaces, they would all have the same soname, e.g.[src] "libx.so.1".[src] If the system only includes version 1.3 of that shared object, with filename "libx.so.1.3", the soname field of the shared object tells the system that it can be used to fill the dependency for a binary which was originally compiled using version 1.2.[src] If the application binary interface of a library changes in a backward-incompatible way, the soname would be "bumped" or incremented, e.g.[src] from "libx.so.1" to "libx.so.2".[src] The GNU linker uses the -h name or -soname= name command-line options to specify the library name field.[src] Internally, the linker will create a DT_SONAME field and populate it with name .[src] Given any shared object file, one can use the following command to get the information from within the library file using objdump: $ objdump -p libx.so.1.3 | grep SONAME SONAME libx.so.1 ==See also== Application programming interface (API) Linux ==External links== External Versioning Linker and Libraries Guide ==References==[src]
17 sentences · 17 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Soname." encyclopegia.org, 2025, https://encyclopegia.org/wiki/soname. Accessed 27 November 2026.
Chicago
"Soname." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/soname.
APA
encyclopegia.org. (2025). Soname. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/soname
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON