so_name directive
In this section:
Syntax
so_name objectname;
Parameters
| The name of a shared object. |
Description
By default, shared objects do not get a name when generated (but the output file gets a name, of course). Use this directive to give the shared object a name.
The .dynstr section of the shared object will contain the name, and the .dynamic section of the shared object will contain a DT_SONAME key whose value is the index (in .dynstr) of the name.
Naming a shared object is not strictly necessary, but being able to identify it is practical.
Example
so_name myShared;
This gives the shared object the name myShared in the .dynamic section. It has no effect on the name of the output file generated by the linker.