This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
dlsym() annoyance
- To: libc-hacker@cygnus.com
- Subject: dlsym() annoyance
- From: Zack Weinberg <zack@rabi.phys.columbia.edu>
- Date: Tue, 01 Sep 1998 17:34:31 -0400
If I call dlsym(NULL, "sym") and sym is a function in libc that's referred
to directly in the program, dlsym returns an address in the PLT, same as
writing ptr = sym. If sym is not referred to directly, I get the actual
address inside the shared library. Is there any way to force dlsym to give
me the real address in all cases? (This is for testing purposes, so I don't
mind calling internal entry points.)
Also, is there any way to get the text size of an arbitrary function from
within the program?
zw