mirror of git://git.musl-libc.org/musl
remove some useless casts in dynamic linker
This commit is contained in:
parent
eb567c12cd
commit
e6076c99dd
|
@ -695,9 +695,9 @@ static void decode_dyn(struct dso *p)
|
||||||
if (dyn[0]&(1<<DT_HASH))
|
if (dyn[0]&(1<<DT_HASH))
|
||||||
p->hashtab = laddr(p, dyn[DT_HASH]);
|
p->hashtab = laddr(p, dyn[DT_HASH]);
|
||||||
if (dyn[0]&(1<<DT_RPATH))
|
if (dyn[0]&(1<<DT_RPATH))
|
||||||
p->rpath_orig = (void *)(p->strings + dyn[DT_RPATH]);
|
p->rpath_orig = p->strings + dyn[DT_RPATH];
|
||||||
if (dyn[0]&(1<<DT_RUNPATH))
|
if (dyn[0]&(1<<DT_RUNPATH))
|
||||||
p->rpath_orig = (void *)(p->strings + dyn[DT_RUNPATH]);
|
p->rpath_orig = p->strings + dyn[DT_RUNPATH];
|
||||||
if (search_vec(p->dynv, dyn, DT_GNU_HASH))
|
if (search_vec(p->dynv, dyn, DT_GNU_HASH))
|
||||||
p->ghashtab = laddr(p, *dyn);
|
p->ghashtab = laddr(p, *dyn);
|
||||||
if (search_vec(p->dynv, dyn, DT_VERSYM))
|
if (search_vec(p->dynv, dyn, DT_VERSYM))
|
||||||
|
|
Loading…
Reference in New Issue