diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-02-19 21:58:08 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-02-19 21:58:08 +0000 |
commit | 92945b5261c412eb590b2b34c7ec9a035f0693a1 (patch) | |
tree | 2d09031d37dcb8faab0ba90eb72b61681deecc51 /sysdeps/i386/stpncpy.S | |
parent | b65e2ba34b218a58a74123e2d6ba70ab0d4797bf (diff) | |
download | glibc-92945b5261c412eb590b2b34c7ec9a035f0693a1.zip glibc-92945b5261c412eb590b2b34c7ec9a035f0693a1.tar.gz glibc-92945b5261c412eb590b2b34c7ec9a035f0693a1.tar.bz2 |
Remove some bounded-pointers support from i386 .S files.
Diffstat (limited to 'sysdeps/i386/stpncpy.S')
-rw-r--r-- | sysdeps/i386/stpncpy.S | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sysdeps/i386/stpncpy.S b/sysdeps/i386/stpncpy.S index 05fd12a..a47a207 100644 --- a/sysdeps/i386/stpncpy.S +++ b/sysdeps/i386/stpncpy.S @@ -36,7 +36,6 @@ .text ENTRY (BP_SYM (__stpncpy)) - ENTER pushl %esi cfi_adjust_cfa_offset (4) @@ -45,8 +44,6 @@ ENTRY (BP_SYM (__stpncpy)) movl SRC(%esp), %esi cfi_rel_offset (esi, 0) movl LEN(%esp), %ecx - CHECK_BOUNDS_LOW (%eax, DEST(%esp)) - CHECK_BOUNDS_LOW (%esi, SRC(%esp)) subl %eax, %esi /* magic: reduce number of loop variants to one using addressing mode */ @@ -141,18 +138,10 @@ L(8): L(3): decl %ecx /* all bytes written? */ jnz L(8) /* no, then again */ -L(9): -#if __BOUNDED_POINTERS__ - addl %eax, %esi /* undo magic: %esi now points beyond end of SRC */ - CHECK_BOUNDS_HIGH (%esi, SRC(%esp), jbe) - CHECK_BOUNDS_HIGH (%eax, DEST(%esp), jbe) - RETURN_BOUNDED_POINTER (DEST(%esp)) -#endif - popl %esi /* restore saved register content */ +L(9): popl %esi /* restore saved register content */ cfi_adjust_cfa_offset (-4) cfi_restore (esi) - LEAVE RET_PTR END (BP_SYM (__stpncpy)) |