[uClibc-cvs] uClibc/ldso/ldso/mips boot1_arch.h,1.5,1.6

Erik Andersen andersen at uclibc.org
Thu Jun 12 21:39:14 UTC 2003


Update of /var/cvs/uClibc/ldso/ldso/mips
In directory winder:/tmp/cvs-serv6640/ldso/ldso/mips

Modified Files:
	boot1_arch.h 
Log Message:
Fix mips so it compiles with gcc 3.3


Index: boot1_arch.h
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/mips/boot1_arch.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- boot1_arch.h	8 Aug 2002 14:35:39 -0000	1.5
+++ boot1_arch.h	12 Jun 2003 21:39:10 -0000	1.6
@@ -3,36 +3,36 @@
  * needed for this architecture.
  */
 
-asm("
-	.text
-	.globl _dl_boot
-_dl_boot:
-	.set noreorder
-	bltzal $0, 0f
-	nop
-0:	.cpload $31
-	.set reorder
-	la $4, _DYNAMIC
-	sw $4, -0x7ff0($28)
-	move $4, $29
-	la $8, coff
-	.set noreorder
-	bltzal $0, coff
-	nop
-coff:	subu $8, $31, $8
-	.set reorder
-	la $25, _dl_boot2
-	addu $25, $8
-	jalr $25
-	lw $4, 0($29)
-	la $5, 4($29)
-	sll $6, $4, 2
-	addu $6, $6, $5
-	addu $6, $6, 4
-	la $7, _dl_elf_main
-	lw $25, 0($7)
-	jr $25
-");
+asm("" \
+"	.text\n"			\
+"	.globl	_dl_boot\n"		\
+"_dl_boot:\n"				\
+"	.set noreorder\n"		\
+"	bltzal $0, 0f\n"		\
+"	nop\n"				\
+"0:	.cpload $31\n"			\
+"	.set reorder\n"			\
+"	la $4, _DYNAMIC\n"		\
+"	sw $4, -0x7ff0($28)\n"	        \
+"	move $4, $29\n"			\
+"	la $8, coff\n"			\
+"	.set noreorder\n"		\
+"	bltzal $0, coff\n"		\
+"	nop\n"				\
+"coff:	subu $8, $31, $8\n"		\
+"	.set reorder\n"			\
+"	la $25, _dl_boot2\n"	        \
+"	addu $25, $8\n"			\
+"	jalr $25\n"			\
+"	lw $4, 0($29)\n"		\
+"	la $5, 4($29)\n"		\
+"	sll $6, $4, 2\n"		\
+"	addu $6, $6, $5\n"		\
+"	addu $6, $6, 4\n"		\
+"	la $7, _dl_elf_main\n"		\
+"	lw $25, 0($7)\n"		\
+"	jr $25\n"			\
+);
 
 #define _dl_boot _dl_boot2
 #define LD_BOOT(X)   static void __attribute__ ((unused)) _dl_boot (X)



More information about the uClibc-cvs mailing list