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
5 +/* Checking memcpy for i686.
6 + Copyright (C) 2004 Free Software Foundation, Inc.
7 + This file is part of the GNU C Library.
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.
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.
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
25 +#include "asm-syntax.h"
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
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
44 +/* Checking mempcpy for x86-64.
45 + Copyright (C) 2004 Free Software Foundation, Inc.
46 + This file is part of the GNU C Library.
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.
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.
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
64 +#include "asm-syntax.h"
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
72 +ENTRY (__mempcpy_chk)
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
83 +/* Checking memset for i686.
84 + Copyright (C) 2004, 2005 Free Software Foundation, Inc.
85 + This file is part of the GNU C Library.
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.
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.
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
103 +#include "asm-syntax.h"
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
111 +ENTRY (__memset_chk)
112 + movl 12(%esp), %eax
113 + cmpl %eax, 16(%esp)