summaryrefslogtreecommitdiff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-09-22 20:20:39 +0000
committerRich Felker <dalias@aerifal.cx>2015-09-22 20:20:39 +0000
commit78f430295c92ae15510082c04e537da4256aa7a7 (patch)
treefef04af18eba6a334ac35a139a6093cb51835c77 /src/ldso/dynlink.c
parent30fdc06bbaeaff871780f9816e312e3820fb214a (diff)
downloadmusl-78f430295c92ae15510082c04e537da4256aa7a7.tar.gz
musl-78f430295c92ae15510082c04e537da4256aa7a7.tar.bz2
musl-78f430295c92ae15510082c04e537da4256aa7a7.tar.xz
musl-78f430295c92ae15510082c04e537da4256aa7a7.zip
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.
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index f8325a01..8967505a 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -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;