Re: Symbol Hiding



"newbei" <newtoqtopia@xxxxxxxxxxx> writes:

do nm libhello.so
I find both functions hello and sizeOfInt() in it why?

Because you are looking in the wrong place.

ELF shared objects (and executables) have *two* symbol tables --
a "regular" one (used mostly for debugging after the exe/DSO
is built) and a "dynamic" one (used by the dynamic loader for
inter-library symbol resolution).

To examine the dynamic symbol table, use 'nm -D' or 'objdump -T'.
The sizeOfInt should not be in *that* output, and so is "invisible"
to the dynamic loader.

Question 2:
What is the difference between strip and symbol hiding.

Strip manipulates the "regular" symbol table (which you do not care
about, except for debugging).

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.



Relevant Pages

  • Re: Symbol Hiding
    ... to the dynamic loader. ... Strip manipulates the "regular" symbol table (which you do not care ... about, except for debugging). ... In order to understand recursion you must first understand recursion. ...
    (comp.os.linux.development.apps)
  • Re: Excel 2007 out ?
    ... it's just a Beta 2 pre release... ... So, it's just for testing and debugging, not for regular use. ... Franz Verga from Italy ...
    (microsoft.public.excel.misc)
  • Re: Unable to start debugging on the server
    ... Adding new infomration to problem: ... I was just able to start debugging through attaching: ... How can I then make it work by the regular way by starting it with F5? ...
    (microsoft.public.vsnet.debugging)