]> git.pld-linux.org Git - packages/glibc.git/blob - glibc-i586-build-fix.patch
- build fix
[packages/glibc.git] / glibc-i586-build-fix.patch
1 diff -urN glibc-2.7.orig/sysdeps/i386/i586/memcpy_chk.S glibc-2.7/sysdeps/i386/i586/memcpy_chk.S
2 --- glibc-2.7.orig/sysdeps/i386/i586/memcpy_chk.S       1970-01-01 01:00:00.000000000 +0100
3 +++ glibc-2.7/sysdeps/i386/i586/memcpy_chk.S    2005-05-14 19:52:13.000000000 +0200
4 @@ -0,0 +1,35 @@
5 +/* Checking memcpy for i686.
6 +   Copyright (C) 2004 Free Software Foundation, Inc.
7 +   This file is part of the GNU C Library.
8 +
9 +   The GNU C Library is free software; you can redistribute it and/or
10 +   modify it under the terms of the GNU Lesser General Public
11 +   License as published by the Free Software Foundation; either
12 +   version 2.1 of the License, or (at your option) any later version.
13 +
14 +   The GNU C Library is distributed in the hope that it will be useful,
15 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
16 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 +   Lesser General Public License for more details.
18 +
19 +   You should have received a copy of the GNU Lesser General Public
20 +   License along with the GNU C Library; if not, write to the Free
21 +   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 +   02111-1307 USA.  */
23 +
24 +#include <sysdep.h>
25 +#include "asm-syntax.h"
26 +
27 +#ifndef PIC
28 +       /* For libc.so this is defined in memcpy.S.
29 +          For libc.a, this is a separate source to avoid
30 +          memcpy bringing in __chk_fail and all routines
31 +          it calls.  */
32 +        .text
33 +ENTRY (__memcpy_chk)
34 +       movl    12(%esp), %eax
35 +       cmpl    %eax, 16(%esp)
36 +       jb      __chk_fail
37 +       jmp     memcpy
38 +END (__memcpy_chk)
39 +#endif
40 diff -urN glibc-2.7.orig/sysdeps/i386/i586/mempcpy_chk.S glibc-2.7/sysdeps/i386/i586/mempcpy_chk.S
41 --- glibc-2.7.orig/sysdeps/i386/i586/mempcpy_chk.S      1970-01-01 01:00:00.000000000 +0100
42 +++ glibc-2.7/sysdeps/i386/i586/mempcpy_chk.S   2004-10-18 06:17:11.000000000 +0200
43 @@ -0,0 +1,35 @@
44 +/* Checking mempcpy for x86-64.
45 +   Copyright (C) 2004 Free Software Foundation, Inc.
46 +   This file is part of the GNU C Library.
47 +
48 +   The GNU C Library is free software; you can redistribute it and/or
49 +   modify it under the terms of the GNU Lesser General Public
50 +   License as published by the Free Software Foundation; either
51 +   version 2.1 of the License, or (at your option) any later version.
52 +
53 +   The GNU C Library is distributed in the hope that it will be useful,
54 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
55 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
56 +   Lesser General Public License for more details.
57 +
58 +   You should have received a copy of the GNU Lesser General Public
59 +   License along with the GNU C Library; if not, write to the Free
60 +   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
61 +   02111-1307 USA.  */
62 +
63 +#include <sysdep.h>
64 +#include "asm-syntax.h"
65 +
66 +#ifndef PIC
67 +       /* For libc.so this is defined in mempcpy.S.
68 +          For libc.a, this is a separate source to avoid
69 +          mempcpy bringing in __chk_fail and all routines
70 +          it calls.  */
71 +        .text
72 +ENTRY (__mempcpy_chk)
73 +       movl    12(%esp), %eax
74 +       cmpl    %eax, 16(%esp)
75 +       jb      __chk_fail
76 +       jmp     mempcpy
77 +END (__mempcpy_chk)
78 +#endif
79 diff -urN glibc-2.7.orig/sysdeps/i386/i586/memset_chk.S glibc-2.7/sysdeps/i386/i586/memset_chk.S
80 --- glibc-2.7.orig/sysdeps/i386/i586/memset_chk.S       1970-01-01 01:00:00.000000000 +0100
81 +++ glibc-2.7/sysdeps/i386/i586/memset_chk.S    2005-03-01 01:13:36.000000000 +0100
82 @@ -0,0 +1,35 @@
83 +/* Checking memset for i686.
84 +   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
85 +   This file is part of the GNU C Library.
86 +
87 +   The GNU C Library is free software; you can redistribute it and/or
88 +   modify it under the terms of the GNU Lesser General Public
89 +   License as published by the Free Software Foundation; either
90 +   version 2.1 of the License, or (at your option) any later version.
91 +
92 +   The GNU C Library is distributed in the hope that it will be useful,
93 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
94 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
95 +   Lesser General Public License for more details.
96 +
97 +   You should have received a copy of the GNU Lesser General Public
98 +   License along with the GNU C Library; if not, write to the Free
99 +   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
100 +   02111-1307 USA.  */
101 +
102 +#include <sysdep.h>
103 +#include "asm-syntax.h"
104 +
105 +#ifndef PIC
106 +       /* For libc.so this is defined in memset.S.
107 +          For libc.a, this is a separate source to avoid
108 +          memset bringing in __chk_fail and all routines
109 +          it calls.  */
110 +        .text
111 +ENTRY (__memset_chk)
112 +       movl    12(%esp), %eax
113 +       cmpl    %eax, 16(%esp)
114 +       jb      __chk_fail
115 +       jmp     memset
116 +END (__memset_chk)
117 +#endif
This page took 0.065833 seconds and 3 git commands to generate.