I'm building an RPM and while building I found following command is used to build one shared object of RPM.
g++ /*some compiler options*/ -O1 -Wl,--version-script abc.map -L<some paths> and the remaining command.
I did not understood the what is the use of "--version-script" option and "abc.map" file in the command. What it does? Follwoing is the content of "abc.map" file.
URE_1{
global:
_ZTI*; _ZTS*; # weak RTTI symbols for C++ exceptions
/*some method names explicitly*/
local:
*;
}
I think its related to making availability of symbols in the "shared object" file but I'm not sure.