Browse Source

doh. I forgot mips can't talk to globals that early on in the
process. Fix that up too.
-Erik

Eric Andersen 22 years ago
parent
commit
00f7fc0e43
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ldso/libdl/dlib.c
  2. 1 1
      ldso/libdl/libdl.c

+ 1 - 1
ldso/libdl/dlib.c

@@ -135,7 +135,7 @@ void *_dlopen(const char *libname, int flag)
 #endif
 
 	/* A bit of sanity checking... */
-	if (!(flag & RTLD_LAZY|RTLD_NOW)) {
+	if (!(flag & (RTLD_LAZY|RTLD_NOW))) {
 		_dl_error_number = LD_BAD_HANDLE;
 		return NULL;
 	}

+ 1 - 1
ldso/libdl/libdl.c

@@ -135,7 +135,7 @@ void *_dlopen(const char *libname, int flag)
 #endif
 
 	/* A bit of sanity checking... */
-	if (!(flag & RTLD_LAZY|RTLD_NOW)) {
+	if (!(flag & (RTLD_LAZY|RTLD_NOW))) {
 		_dl_error_number = LD_BAD_HANDLE;
 		return NULL;
 	}