浏览代码

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

Eric Andersen 22 年之前
父节点
当前提交
00f7fc0e43
共有 2 个文件被更改,包括 2 次插入2 次删除
  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;
 	}