rendered paste bodyError #1:
!> AS libc/string/mips/memcpy.os
!> libc/string/mips/memcpy.S:156:1: pasting "memcpy" and ":" does not give a valid preprocessing token
Error #2:
!> AS lib/crti.o
!> libc/sysdeps/linux/mips/crti.S:7:2: invalid preprocessing directive #APP
!> libc/sysdeps/linux/mips/crti.S:10:2: invalid preprocessing directive #NO_APP
Error #1 is fixed by:
--- ./libc/string/mips/sysdep.h.orig 2007-05-08 11:27:19.000000000 +0200
+++ ./libc/string/mips/sysdep.h 2007-05-08 11:15:22.000000000 +0200
@@ -29,7 +29,7 @@
.globl name; \
.align 2; \
.ent name,0; \
- name##:
+ name:
#undef END
#define END(function) \
Error #2 is fixed by:
--- ./libc/sysdeps/linux/mips/crti.S.orig 2006-11-04 20:53:15.000000000 +0100
+++ ./libc/sysdeps/linux/mips/crti.S 2007-05-08 11:20:16.000000000 +0200
@@ -4,10 +4,8 @@
.section .mdebug.abi32
.previous
.abicalls
-#APP
.section .init
-#NO_APP
.align 2
.globl _init
.ent _init
@@ -23,13 +21,11 @@
.cprestore 16
sw $31,28($sp)
sw $28,24($sp)
-#APP
.align 2
.end _init
.section .fini
-#NO_APP
.align 2
.globl _fini
.ent _fini
@@ -45,7 +41,6 @@
.cprestore 16
sw $31,28($sp)
sw $28,24($sp)
-#APP
.align 2
.end _fini
@@ -55,10 +50,8 @@
.section .mdebug.abiN32
.previous
.abicalls
-#APP
.section .init
-#NO_APP
.align 2
.align 3
.globl _init
@@ -74,13 +67,11 @@
addu $28,$28,$25
addiu $28,$28,%lo(%neg(%gp_rel(_init)))
sd $31,8($sp)
-#APP
.align 3
.end _init
.section .fini
-#NO_APP
.align 2
.align 3
.globl _fini
@@ -96,7 +87,6 @@
addu $28,$28,$25
addiu $28,$28,%lo(%neg(%gp_rel(_fini)))
sd $31,8($sp)
-#APP
.align 3
.end _fini
@@ -106,11 +96,9 @@
.section .mdebug.abi64
.previous
.abicalls
-#APP
.section .init
-#NO_APP
.align 2
.globl _init
.ent _init
@@ -127,13 +115,11 @@
addiu $1,$1,%lo(%neg(%gp_rel(_init)))
daddu $gp,$1,$25
.set at
-#APP
.align 2
.end _init
.section .fini
-#NO_APP
.align 2
.globl _fini
.ent _fini
@@ -150,7 +136,6 @@
addiu $1,$1,%lo(%neg(%gp_rel(_fini)))
daddu $gp,$1,$25
.set at
-#APP
.align 2
.end _fini
--- ./libc/sysdeps/linux/mips/crtn.S.orig 2006-11-04 20:53:15.000000000 +0100
+++ ./libc/sysdeps/linux/mips/crtn.S 2007-05-08 11:23:17.000000000 +0200
@@ -4,17 +4,14 @@
.section .mdebug.abi32
.previous
.abicalls
-#APP
.section .init
-#NO_APP
.align 2
.globl _init
.ent _init
.type _init, @function
-#NO_APP
lw $31,28($sp)
- #nop
+
.set noreorder
.set nomacro
j $31
@@ -23,17 +20,13 @@
.set reorder
.end _init
-#APP
.section .fini
-#NO_APP
.align 2
.globl _fini
.ent _fini
.type _fini, @function
-#NO_APP
lw $31,28($sp)
- #nop
.set noreorder
.set nomacro
j $31
@@ -42,7 +35,6 @@
.set reorder
.end _fini
-#APP
.ident "GCC: (GNU) 3.3.2"
#elif _MIPS_SIM == _MIPS_SIM_NABI32
@@ -50,16 +42,13 @@
.section .mdebug.abiN32
.previous
.abicalls
-#APP
.section .init
-#NO_APP
.align 2
.align 3
.globl _init
.ent _init
.type _init, @function
-#NO_APP
ld $31,8($sp)
ld $28,0($sp)
.set noreorder
@@ -70,16 +59,13 @@
.set reorder
.end _init
-#APP
.section .fini
-#NO_APP
.align 2
.align 3
.globl _fini
.ent _fini
.type _fini, @function
-#NO_APP
ld $31,8($sp)
ld $28,0($sp)
.set noreorder
@@ -90,7 +76,6 @@
.set reorder
.end _fini
-#APP
.ident "GCC: (GNU) 3.4.3"
#else /* N64 */
@@ -98,19 +83,15 @@
.section .mdebug.abi64
.previous
.abicalls
-#APP
.section .init
-#NO_APP
.align 2
.globl _init
.ent _init
.type _init, @function
-#NO_APP
ld $31,24($sp)
ld $28,16($sp)
- #nop
.set noreorder
.set nomacro
j $31
@@ -119,18 +100,14 @@
.set reorder
.end _init
-#APP
.section .fini
-#NO_APP
.align 2
.globl _fini
.ent _fini
.type _fini, @function
-#NO_APP
ld $31,24($sp)
ld $28,16($sp)
- #nop
.set noreorder
.set nomacro
j $31
@@ -139,7 +116,6 @@
.set reorder
.end _fini
-#APP
.ident "GCC: (GNU) 3.3.2"
#endif /* N64 */