patches/glibc/2.2.5/glibc-2.2.5-mips-dl-machine-1.59-kinda.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
Fixes error
yann@1
     2
yann@1
     3
In file included from dynamic-link.h:21,
yann@1
     4
                 from dl-load.c:32:
yann@1
     5
../sysdeps/mips/dl-machine.h:454: error: parse error before "$29"
yann@1
     6
../sysdeps/mips/dl-machine.h:454: warning: type defaults to `int' in declaration of `$29'
yann@1
     7
../sysdeps/mips/dl-machine.h:454: error: stray '\' in program
yann@1
     8
../sysdeps/mips/dl-machine.h:454: error: syntax error at '#' token
yann@1
     9
../sysdeps/mips/dl-machine.h:454: error: stray '\' in program
yann@1
    10
../sysdeps/mips/dl-machine.h:454: error: stray '\' in program
yann@1
    11
../sysdeps/mips/dl-machine.h:454: error: syntax error at '#' token
yann@1
    12
../sysdeps/mips/dl-machine.h:454: error: stray '\' in program
yann@1
    13
../sysdeps/mips/dl-machine.h:454: error: stray '\' in program
yann@1
    14
../sysdeps/mips/dl-machine.h:454: error: stray '\' in program
yann@1
    15
../sysdeps/mips/dl-machine.h:454: error: stray '\' in program
yann@1
    16
../sysdeps/mips/dl-machine.h:454: error: missing terminating " character
yann@1
    17
...
yann@1
    18
make[2]: *** [/home/dank/wk/crosstool-0.28-rc24/build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.2.5/build-glibc/elf/dl-load.o] Error 1
yann@1
    19
make[2]: Leaving directory `/home/dank/wk/crosstool-0.28-rc24/build/mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.2.5/glibc-2.2.5/elf'
yann@1
    20
yann@1
    21
See also http://sources.redhat.com/ml/crossgcc/2003-12/msg00014.html
yann@1
    22
yann@1
    23
===================================================================
yann@1
    24
diff -u -r1.58 -r1.59
yann@1
    25
--- libc/sysdeps/mips/dl-machine.h	2002/02/01 01:31:55	1.58
yann@1
    26
+++ libc/sysdeps/mips/dl-machine.h	2002/02/03 00:29:15	1.59
yann@1
    27
@@ -449,7 +449,7 @@
yann@1
    28
 	addu $7, $7, 4\n\
yann@1
    29
 	subu $29, 16\n\
yann@1
    30
 	# Call the function to run the initializers.\n\
yann@1
    31
-	jal _dl_init
yann@1
    32
+	jal _dl_init\n\
yann@1
    33
 	addiu $29, 16\n\
yann@1
    34
 	# Pass our finalizer function to the user in $2 as per ELF ABI.\n\
yann@1
    35
 	la $2, _dl_fini\n\