Once the shared library is linked, you can no longer tell which parts of it came from which object file.

You can search the individual objects from which you build the library:

find . -name '*.o' -print0 | xargs -0 nm -A | egrep ' (i|y)$'


You can ask the linker to tell you when they are defined:

$(CC) -fPIC -shared -o libmy.so $(OBJS) -Wl,-y,i,-y,y


If you built the library from objects compiled with -g, you may ask GDB where i and y came from:

gdb -q libmy.so
(gdb) info var ^i$
(gdb) info var ^y$


nm: how to show object file of a symbol in a shared library?
What im trying to do is a little different, im wondering, if its possible to create sorts of an interface, so that if a particular function is called in php (stand alone), than the arguments will be forwarded to a method in C#, and vice versa. 
