| | |
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 api array arrays binarysearch calculate char cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators intmain() iso kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat opensource openwebfoundation owf pattern pdf performance pointer posix power probleminc program programming pyramidusingturboccodes read recursion recv recvblocked repetition research scanf scheduling segmentationfault send shape socketprograming socketprogramming stack standard strchr string suggestions systemcall test unix urboc user variable voidmain() wab win32api windows.h





