Re: Symbol Hiding
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxxxx>
- Date: Wed, 28 Mar 2007 06:58:43 -0700
"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.
.
- Follow-Ups:
- Re: Symbol Hiding
- From: newbei
- Re: Symbol Hiding
- References:
- Symbol Hiding
- From: newbei
- Symbol Hiding
- Prev by Date: Serial port: flushing & changing baudrate problem
- Next by Date: Re: New Linux kernel written in BASIC to be released in 5 days.
- Previous by thread: Symbol Hiding
- Next by thread: Re: Symbol Hiding
- Index(es):
Relevant Pages
|