Browse Source

Patch from Stefan Allius to fix a compiler warning

Eric Andersen 22 years ago
parent
commit
8921da1c9b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ldso/ldso/ldso.c

+ 3 - 1
ldso/ldso/ldso.c

@@ -208,11 +208,13 @@ LD_BOOT(unsigned long args)
 	Elf32_auxv_t auxvt[AT_EGID + 1];
 	unsigned char *malloc_buffer, *mmap_zero;
 	Elf32_Dyn *dpnt;
-	Elf32_Dyn *dpnt_debug = NULL;
 	unsigned long *hash_addr;
 	struct r_debug *debug_addr;
 	int indx;
 	int status;
+#ifndef FORCE_SHAREABLE_TEXT_SEGMENTS
+	Elf32_Dyn *dpnt_debug = NULL;
+#endif
 
 
 	/* WARNING! -- we cannot make _any_ funtion calls until we have