| | |
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 |
#include * adobe ansi api array asterisks binarysearch centimeter changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork frequency function getlasterror getlogicaldrivestrin givemetehcodez global grade graphics gtkgcurlcompiling gtkwinlinux hacking highest histogram include incrementoperators infiniteloop input interest kernel keyboard kilometer linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft mqqueue number odf opendocumentformat owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape single socket socketprograming standard string systemcall threads turboc unix user voidmain() wab whythiscodecausesegmentationfault windows.h windowsapi





