| | |
Query related to Hiding symbol in Shared Library
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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 |
Tag cloud for C
#include * append array arrays asterisks binarysearch calculate changingto char character cm command copyimagefile cprogramme creafecopyofanytypeoffileinc database directory dynamic execv feet fgets file fork forloop framework function functions givemetehcodez grade graphics gtkwinlinux hacking histogram homework inches include incrementoperators input intmain() iso kernel keyboard km lazy license linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft mqqueue number oddnumber odf opendocumentformat opensource overwrite owf pdf performance pointer posix problem probleminc process program programming radix recursion recv recvblocked research reversing scanf scripting segmentationfault sequential socket spoonfeeding standard string student systemcall testing threads turboc unix user variable wab whythiscodecausesegmentationfault windowsapi





