| | |
Query related to Hiding symbol in Shared Library
![]() |
•
•
Join Date: Jul 2007
Posts: 25
Reputation:
Solved Threads: 0
Hi,
I have a question:
Suppose i have a source code file as
test.c
------------
i make shared library using gcc say named as libhello.so
now although the function sayHello is not exported to the libhello.so
but when i run this command:
shell> nm libhello.so
the resultant display shows one of the symbol there as sayHello
Is this possible that I completely hide this symbol so that nm doesnt read this local symbol in the library.
Kind Regards
I have a question:
Suppose i have a source code file as
test.c
------------
C Syntax (Toggle Plain Text)
#include <stdio.h> void __attribute__ (( visibility ("hidden") )) sayHello (void) { printf("hello"); }
i make shared library using gcc say named as libhello.so
now although the function sayHello is not exported to the libhello.so
but when i run this command:
shell> nm libhello.so
the resultant display shows one of the symbol there as sayHello
Is this possible that I completely hide this symbol so that nm doesnt read this local symbol in the library.
Kind Regards
Last edited by nabilchampion; Dec 31st, 2008 at 9:38 am.
![]() |
Other Threads in the C Forum
- Previous Thread: Project/File design
- Next Thread: variable length array may not be initialized: error
| Thread Tools | Search this Thread |
* adobe ansi api array asterisks binarysearch calculate centimeter changingto char character cm convert copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory feet fflush fgets file floatingpointvalidation fork forloop frequency givemetehcodez grade gtkgcurlcompiling gtkwinlinux hacking highest histogram inches input intmain() iso kernel keyboard kilometer km linked linkedlist linux linuxsegmentationfault list locate looping loopinsideloop. lowest match microsoft mqqueue mysql number oddnumber odf opendocumentformat openwebfoundation owf pattern pdf performance posix probleminc process program programming radix recv recvblocked repetition research reversing scanf scheduling segmentationfault sequential single socket socketprograming socketprogramming stack standard string systemcall threads turboc unix urboc user variable voidmain() wab whythiscodecausesegmentationfault windows.h windowsapi





