[uClibc-cvs] svn commit: trunk/uClibc/ldso/ldso: i386

andersen at uclibc.org andersen at uclibc.org
Mon Mar 14 22:09:15 UTC 2005


Author: andersen
Date: 2005-03-14 15:09:14 -0700 (Mon, 14 Mar 2005)
New Revision: 10002

Log:
Fix up x86 so it compiles again.


Modified:
   trunk/uClibc/ldso/ldso/i386/dl-sysdep.h
   trunk/uClibc/ldso/ldso/ldso.c


Changeset:
Modified: trunk/uClibc/ldso/ldso/i386/dl-sysdep.h
===================================================================
--- trunk/uClibc/ldso/ldso/i386/dl-sysdep.h	2005-03-14 18:41:23 UTC (rev 10001)
+++ trunk/uClibc/ldso/ldso/i386/dl-sysdep.h	2005-03-14 22:09:14 UTC (rev 10002)
@@ -59,11 +59,11 @@
 	/* It doesn't matter what variable this is, the reference never makes
 	   it to assembly.  We need a dummy reference to some global variable
 	   via the GOT to make sure the compiler initialized %ebx in time.  */
-	extern int _dl_argc;
+	extern int _dl_errno;
 	Elf32_Addr addr;
 	asm ("leal _dl_boot at GOTOFF(%%ebx), %0\n"
 	     "subl _dl_boot at GOT(%%ebx), %0"
-	     : "=r" (addr) : "m" (_dl_argc) : "cc");
+	     : "=r" (addr) : "m" (_dl_errno) : "cc");
 	return addr;
 }
 

Modified: trunk/uClibc/ldso/ldso/ldso.c
===================================================================
--- trunk/uClibc/ldso/ldso/ldso.c	2005-03-14 18:41:23 UTC (rev 10001)
+++ trunk/uClibc/ldso/ldso/ldso.c	2005-03-14 22:09:14 UTC (rev 10002)
@@ -58,7 +58,6 @@
 int   _dl_debug_file      = 2;
 #endif
 
-extern attribute_hidden void _dl_boot(void);
 #include "dl-startup.c"
 /* Forward function declarations */
 static int _dl_suid_ok(void);




More information about the uClibc-cvs mailing list