This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Exposing a relocatable functions when using a version script
- From: "Dagan, Amit" <amit dot dagan at intel dot com>
- To: gcc at gcc dot gnu dot org
- Cc: "Dagan, Amit" <amit dot dagan at intel dot com>
- Date: Tue, 11 Mar 2003 15:10:06 +0200
- Subject: Exposing a relocatable functions when using a version script
Hi,
I’m compiling a C based shared library using a version script (so that only
the interface functions will be visible). In this case the compiler hides
also the relocatable functions (for example the exception handling functions
like register_frame). Call to register_frame becomes relative instead of via
the relocation table.
How can I expose only the functions in the version script and the
relocatable functions, and hide the rest? I’ve tried using the –u and
–retain-symbols-file flags with no help.
Please CC me on the answer since I’m not part of the mailing list.
Thanks,
Amit