fix breakage in ldd (failure to print library load address)
This commit is contained in:
parent
969ddbc423
commit
1d7c4f8f93
1 changed files with 2 additions and 2 deletions
|
|
@ -433,7 +433,7 @@ static struct dso *load_library(const char *name)
|
||||||
{
|
{
|
||||||
char buf[2*NAME_MAX+2];
|
char buf[2*NAME_MAX+2];
|
||||||
const char *pathname;
|
const char *pathname;
|
||||||
unsigned char *base, *map;
|
unsigned char *map;
|
||||||
size_t map_len;
|
size_t map_len;
|
||||||
struct dso *p, temp_dso = {0};
|
struct dso *p, temp_dso = {0};
|
||||||
int fd;
|
int fd;
|
||||||
|
|
@ -566,7 +566,7 @@ static struct dso *load_library(const char *name)
|
||||||
p->prev = tail;
|
p->prev = tail;
|
||||||
tail = p;
|
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;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue