[uClibc-cvs] uClibc/ldso/ldso/powerpc boot1_arch.h,1.3,1.4 elfinterp.c,1.20,1.21

Erik Andersen andersen at codepoet.org
Sun Feb 16 01:22:45 UTC 2003


Update of /var/cvs/uClibc/ldso/ldso/powerpc
In directory winder:/tmp/cvs-serv17709/ldso/ldso/powerpc

Modified Files:
	boot1_arch.h elfinterp.c 
Log Message:
Fixup powerpc syscalls to eliminate warnings with gcc-3.2, and fix
some other minor warnings.


Index: boot1_arch.h
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/powerpc/boot1_arch.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- boot1_arch.h	8 Aug 2002 14:35:41 -0000	1.3
+++ boot1_arch.h	16 Feb 2003 01:22:41 -0000	1.4
@@ -5,16 +5,15 @@
 /* Overrive the default _dl_boot function, and replace it with a bit of asm.
  * Then call the real _dl_boot function, which is now named _dl_boot2. */
 
-asm("\
-.text
-.globl _dl_boot
-_dl_boot:
-	mr	3,1
-	addi	1,1,-16
-
-	bl      _dl_boot2
-.previous\n\
-");
+asm("" \
+"	.text\n"			\
+"	.globl	_dl_boot\n"		\
+"_dl_boot:\n"				\
+"	mr	3,1\n"			\
+"	addi	1,1,-16\n"		\
+"	bl      _dl_boot2\n"		\
+".previous\n"				\
+);
 
 #define _dl_boot _dl_boot2
 #define LD_BOOT(X)   static void *  __attribute__ ((unused)) _dl_boot (X)

Index: elfinterp.c
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/powerpc/elfinterp.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- elfinterp.c	12 Nov 2002 20:09:29 -0000	1.20
+++ elfinterp.c	16 Feb 2003 01:22:41 -0000	1.21
@@ -382,7 +382,8 @@
 			}
 			break;
 #else
-			_dl_dprintf(2,"R_PPC_REL24: Compile shared libraries with -fPIC!\n");
+			_dl_dprintf(2, "%s: symbol '%s' is type R_PPC_REL24\n\tCompile shared libraries with -fPIC!\n",
+					_dl_progname, strtab + symtab[symtab_index].st_name);
 			_dl_exit(1);
 #endif
 		case R_PPC_RELATIVE:




More information about the uClibc-cvs mailing list