[uClibc-cvs] uClibc/ldso/ldso ldso.c,1.80,1.81

Erik Andersen andersen at uclibc.org
Sun Feb 1 08:30:58 UTC 2004


Update of /var/cvs/uClibc/ldso/ldso
In directory nail:/tmp/cvs-serv3675/ldso/ldso

Modified Files:
	ldso.c 
Log Message:
Jakub Bogusz writes:

Hello,

the attached patch fixes ldso compilation on sparc-linux (at least with
sparc32 userland). It was made against uClibc 0.9.21, but it's still OK
with 0.9.26.

There were three problems:
- missing __NR_getpid definition
- conflicting prototypes in elfinterp.c
- syntax error (missing semicolon) in ldso.c

With this patch shared libraries and ldso can be built on sparc.

It contains also ldso.c syntax fix for m68k - there was the same
mistake two lines earlier; but I didn't test build on m68k.



Index: ldso.c
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/ldso.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- ldso.c	29 Jan 2004 11:42:45 -0000	1.80
+++ ldso.c	1 Feb 2004 08:30:55 -0000	1.81
@@ -278,9 +278,9 @@
 #if defined(__i386__)
   __asm__("\tmovl %%ebx,%0\n\t":"=a"(got));
 #elif defined(__m68k__)
-  __asm__("movel %%a5,%0":"=g"(got))
+  __asm__("movel %%a5,%0":"=g"(got));
 #elif defined(__sparc__)
-  __asm__("\tmov %%l7,%0\n\t":"=r"(got))
+  __asm__("\tmov %%l7,%0\n\t":"=r"(got));
 #elif defined(__arm__)
   __asm__("\tmov %0, r10\n\t":"=r"(got));
 #elif defined(__powerpc__)




More information about the uClibc-cvs mailing list