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/i586/strlen.S | |
parent | b65e2ba34b218a58a74123e2d6ba70ab0d4797bf (diff) | |
download | glibc-92945b5261c412eb590b2b34c7ec9a035f0693a1.tar.gz glibc-92945b5261c412eb590b2b34c7ec9a035f0693a1.tar.xz glibc-92945b5261c412eb590b2b34c7ec9a035f0693a1.zip |
Remove some bounded-pointers support from i386 .S files.
Diffstat (limited to 'sysdeps/i386/i586/strlen.S')
-rw-r--r-- | sysdeps/i386/i586/strlen.S | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/i386/i586/strlen.S b/sysdeps/i386/i586/strlen.S index a145cb5684..c076343a7b 100644 --- a/sysdeps/i386/i586/strlen.S +++ b/sysdeps/i386/i586/strlen.S @@ -41,10 +41,8 @@ .text ENTRY (BP_SYM (strlen)) - ENTER movl STR(%esp), %eax - CHECK_BOUNDS_LOW (%eax, STR(%esp)) movl $3, %edx /* load mask (= 3) */ andl %eax, %edx /* separate last two bits of address */ @@ -178,11 +176,9 @@ L(3): subl $4, %eax /* correct too early pointer increment */ incl %eax /* increment pointer */ -L(2): CHECK_BOUNDS_HIGH (%eax, STR(%esp), jb) - subl STR(%esp), %eax /* now compute the length as difference +L(2): subl STR(%esp), %eax /* now compute the length as difference between start and terminating NUL character */ - LEAVE ret END (BP_SYM (strlen)) libc_hidden_builtin_def (strlen) |