mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
No need for special strcmp for rtld.
This commit is contained in:
parent
16d2ea4c82
commit
009a69f0bc
@ -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.
|
||||
|
@ -1,28 +0,0 @@
|
||||
#include <sysdep.h>
|
||||
#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))
|
Loading…
Reference in New Issue
Block a user