From 009a69f0bcce04d3743c9b59246e6885dbd2b100 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 27 Jul 2009 06:55:04 -0700 Subject: [PATCH] No need for special strcmp for rtld. --- ChangeLog | 1 - sysdeps/x86_64/rtld-strcmp.S | 28 ---------------------------- 2 files changed, 29 deletions(-) delete mode 100644 sysdeps/x86_64/rtld-strcmp.S diff --git a/ChangeLog b/ChangeLog index 12ac487385..801ec189d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,7 +7,6 @@ * sysdeps/x86_64/rtld-memcmp.c: New file. * sysdeps/x86_64/rtld-rawmemchr.c: New file. * sysdeps/x86_64/rtld-strchr.S: New file. - * sysdeps/x86_64/rtld-strcmp.S: New file. * sysdeps/x86_64/rtld-strlen.S: New file. * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file. * sysdeps/x86_64/multiarch/rtld-strlen.S: New file. diff --git a/sysdeps/x86_64/rtld-strcmp.S b/sysdeps/x86_64/rtld-strcmp.S deleted file mode 100644 index a25535c161..0000000000 --- a/sysdeps/x86_64/rtld-strcmp.S +++ /dev/null @@ -1,28 +0,0 @@ -#include -#include "asm-syntax.h" -#include "bp-sym.h" -#include "bp-asm.h" - -#ifndef LABEL -#define LABEL(l) L(l) -#endif - - .text -ENTRY (BP_SYM (STRCMP)) -/* Simple version since we can't use SSE registers in ld.so. */ -L(oop): movb (%rdi), %al - cmpb (%rsi), %al - jne L(neq) - incq %rdi - incq %rsi - testb %al, %al - jnz L(oop) - - xorl %eax, %eax - ret - -L(neq): movl $1, %eax - movl $-1, %ecx - cmovbl %ecx, %eax - ret -END (BP_SYM (STRCMP))