fix breakage in non-fdpic dynamic linker init/fini processing

a mistaken #ifdef instead of #if caused conversion of code addresses
to function descriptors to be performed even on non-fdpic.
This commit is contained in:
Rich Felker 2015-09-22 20:20:39 +00:00
parent 30fdc06bba
commit 78f430295c

View File

@ -139,7 +139,7 @@ static int dl_strcmp(const char *l, const char *r)
#define strcmp(l,r) dl_strcmp(l,r)
/* Compute load address for a virtual address in a given dso. */
#ifdef DL_FDPIC
#if DL_FDPIC
static void *laddr(const struct dso *p, size_t v)
{
size_t j=0;