diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-12-15 23:34:08 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-12-15 23:34:08 -0500 |
commit | 1d7c4f8f93d82ad5d8f650e71bcd99201965d9ad (patch) | |
tree | d57524ac972f15dd005168427909d0e52d593622 /src/ldso/dynlink.c | |
parent | 969ddbc423238291d5c7982790bbe72720627ba4 (diff) | |
download | musl-1d7c4f8f93d82ad5d8f650e71bcd99201965d9ad.tar.gz musl-1d7c4f8f93d82ad5d8f650e71bcd99201965d9ad.tar.xz musl-1d7c4f8f93d82ad5d8f650e71bcd99201965d9ad.zip |
fix breakage in ldd (failure to print library load address)
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r-- | src/ldso/dynlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index d564b8f2..935367e3 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -433,7 +433,7 @@ static struct dso *load_library(const char *name) { char buf[2*NAME_MAX+2]; const char *pathname; - unsigned char *base, *map; + unsigned char *map; size_t map_len; struct dso *p, temp_dso = {0}; int fd; @@ -566,7 +566,7 @@ static struct dso *load_library(const char *name) p->prev = tail; tail = p; - if (ldd_mode) dprintf(1, "\t%s => %s (%p)\n", name, pathname, base); + if (ldd_mode) dprintf(1, "\t%s => %s (%p)\n", name, pathname, p->base); return p; } |