Libraries updates and cleanup
* Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the meaning of the comment. * Cleaned up _REENTRANT-related defintions. * Disabled -D_REENTRANT for libfetch * Removing some unneeded __NBSD_LIBC defines and tests Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
@@ -202,22 +202,24 @@ static bool
|
||||
_rtld_load_by_name(const char *name, Obj_Entry *obj, Needed_Entry **needed,
|
||||
int flags)
|
||||
{
|
||||
#if !defined(__minix)
|
||||
Library_Xform *x = _rtld_xforms;
|
||||
Obj_Entry *o = NULL;
|
||||
size_t j;
|
||||
ssize_t i;
|
||||
#endif /* !defined(__minix) */
|
||||
bool got = false;
|
||||
#if !defined(__minix)
|
||||
union {
|
||||
int i;
|
||||
u_quad_t q;
|
||||
char s[16];
|
||||
} val;
|
||||
#endif /* !defined(__minix) */
|
||||
|
||||
#if !defined(__minix)
|
||||
dbg(("load by name %s %p", name, x));
|
||||
for (; x; x = x->next) {
|
||||
#ifdef __minix
|
||||
continue;
|
||||
#else
|
||||
if (strcmp(x->name, name) != 0)
|
||||
continue;
|
||||
|
||||
@@ -281,8 +283,8 @@ _rtld_load_by_name(const char *name, Obj_Entry *obj, Needed_Entry **needed,
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
#endif /* !defined(__minix) */
|
||||
|
||||
if (got)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user