Add missing END() macros, as per rev 184547 for amd64. The lack of these
is mostly harmless, but it does upset some of valgrind's functionality.
This commit is contained in:
parent
aa63008f13
commit
3375b8347b
@ -44,13 +44,14 @@
|
||||
.set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
|
||||
mov __CONCAT($SYS_,x),%eax; KERNCALL; jb 2b
|
||||
|
||||
#define RSYSCALL(x) SYSCALL(x); ret
|
||||
#define RSYSCALL(x) SYSCALL(x); ret; END(__CONCAT(__sys_,x))
|
||||
|
||||
#define PSEUDO(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \
|
||||
ENTRY(__CONCAT(__sys_,x)); \
|
||||
.weak CNAME(__CONCAT(_,x)); \
|
||||
.set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
|
||||
mov __CONCAT($SYS_,x),%eax; KERNCALL; jb 2b; ret
|
||||
mov __CONCAT($SYS_,x),%eax; KERNCALL; jb 2b; ret; \
|
||||
END(__CONCAT(__sys_,x))
|
||||
|
||||
/* gas messes up offset -- although we don't currently need it, do for BCS */
|
||||
#define LCALL(x,y) .byte 0x9a ; .long y; .word x
|
||||
|
@ -49,3 +49,4 @@ ENTRY(_ctx_start)
|
||||
call PIC_PLT(_ctx_done) /* should never return */
|
||||
call PIC_PLT(abort) /* fubar */
|
||||
ret
|
||||
END(_ctx_start)
|
||||
|
@ -58,6 +58,7 @@ ENTRY(_setjmp)
|
||||
fnstcw 24(%eax)
|
||||
xorl %eax,%eax
|
||||
ret
|
||||
END(_setjmp)
|
||||
|
||||
.weak CNAME(_longjmp)
|
||||
.set CNAME(_longjmp),CNAME(___longjmp)
|
||||
@ -76,3 +77,4 @@ ENTRY(___longjmp)
|
||||
incl %eax
|
||||
1: movl %ecx,0(%esp)
|
||||
ret
|
||||
END(___longjmp)
|
||||
|
@ -40,3 +40,4 @@ ENTRY(fabs)
|
||||
fldl 4(%esp)
|
||||
fabs
|
||||
ret
|
||||
END(fabs)
|
||||
|
@ -82,3 +82,4 @@ ENTRY(modf)
|
||||
fdivp /* return +/- 0 for +/- Inf, NaN for NaN */
|
||||
leave
|
||||
ret
|
||||
END(modf)
|
||||
|
@ -115,3 +115,4 @@ ENTRY(rfork_thread)
|
||||
popl %ebp
|
||||
PIC_PROLOGUE
|
||||
jmp PIC_PLT(HIDENAME(cerror))
|
||||
END(rfork_thread)
|
||||
|
@ -69,6 +69,7 @@ ENTRY(setjmp)
|
||||
fnstcw 24(%ecx)
|
||||
xorl %eax,%eax
|
||||
ret
|
||||
END(setjmp)
|
||||
|
||||
.weak CNAME(longjmp)
|
||||
.set CNAME(longjmp),CNAME(__longjmp)
|
||||
@ -96,3 +97,4 @@ ENTRY(__longjmp)
|
||||
incl %eax
|
||||
1: movl %ecx,0(%esp)
|
||||
ret
|
||||
END(__longjmp)
|
||||
|
@ -78,10 +78,11 @@ ENTRY(sigsetjmp)
|
||||
fnstcw 24(%ecx)
|
||||
xorl %eax,%eax
|
||||
ret
|
||||
END(sigsetjmp)
|
||||
|
||||
.weak CNAME(siglongjmp);
|
||||
.set CNAME(siglongjmp),CNAME(__siglongjmp);
|
||||
ENTRY(__siglongjmp);
|
||||
.set CNAME(siglongjmp),CNAME(__siglongjmp)
|
||||
ENTRY(__siglongjmp)
|
||||
movl 4(%esp),%edx
|
||||
cmpl $0,44(%edx)
|
||||
jz 2f
|
||||
@ -108,3 +109,4 @@ ENTRY(__siglongjmp);
|
||||
incl %eax
|
||||
1: movl %ecx,0(%esp)
|
||||
ret
|
||||
END(__siglongjmp)
|
||||
|
@ -44,3 +44,4 @@ ENTRY(abs)
|
||||
jns 1f
|
||||
negl %eax
|
||||
1: ret
|
||||
END(abs)
|
||||
|
@ -36,3 +36,4 @@ ENTRY(div)
|
||||
movl %eax,4(%esp)
|
||||
movl %edx,8(%esp)
|
||||
ret
|
||||
END(div)
|
||||
|
@ -44,3 +44,4 @@ ENTRY(labs)
|
||||
jns 1f
|
||||
negl %eax
|
||||
1: ret
|
||||
END(labs)
|
||||
|
@ -39,3 +39,4 @@ ENTRY(ldiv)
|
||||
movl %eax,4(%esp)
|
||||
movl %edx,8(%esp)
|
||||
ret
|
||||
END(ldiv)
|
||||
|
@ -61,3 +61,4 @@ L1:
|
||||
popl %esi
|
||||
popl %edi
|
||||
ret
|
||||
END(bcmp)
|
||||
|
@ -97,3 +97,12 @@ ENTRY(bcopy)
|
||||
popl %esi
|
||||
cld
|
||||
ret
|
||||
#ifdef MEMCOPY
|
||||
END(memcpy)
|
||||
#else
|
||||
#ifdef MEMMOVE
|
||||
END(memmove)
|
||||
#else
|
||||
END(bcopy)
|
||||
#endif
|
||||
#endif
|
||||
|
@ -79,3 +79,4 @@ L1: rep
|
||||
popl %ebx
|
||||
popl %edi
|
||||
ret
|
||||
END(bzero)
|
||||
|
@ -51,3 +51,4 @@ ENTRY(ffs)
|
||||
.align 2
|
||||
L1: xorl %eax,%eax /* clear result */
|
||||
ret
|
||||
END(ffs)
|
||||
|
@ -61,3 +61,4 @@ L1:
|
||||
L2:
|
||||
popl %ebx
|
||||
ret
|
||||
END(index)
|
||||
|
@ -56,3 +56,4 @@ ENTRY(memchr)
|
||||
L1: xorl %eax,%eax
|
||||
popl %edi
|
||||
ret
|
||||
END(memchr)
|
||||
|
@ -73,3 +73,4 @@ L6: movzbl -1(%edi),%eax /* Perform unsigned comparison */
|
||||
popl %esi
|
||||
popl %edi
|
||||
ret
|
||||
END(memcmp)
|
||||
|
@ -87,3 +87,4 @@ L1: rep
|
||||
popl %ebx
|
||||
popl %edi
|
||||
ret
|
||||
END(memset)
|
||||
|
@ -62,3 +62,4 @@ L2:
|
||||
jne L1
|
||||
popl %ebx
|
||||
ret
|
||||
END(rindex)
|
||||
|
@ -98,3 +98,4 @@ L1: movb (%edx),%al /* unroll loop, but not too much */
|
||||
L2: popl %eax /* pop destination address */
|
||||
popl %edi /* restore edi */
|
||||
ret
|
||||
END(strcat)
|
||||
|
@ -61,3 +61,4 @@ L1:
|
||||
L2:
|
||||
popl %ebx
|
||||
ret
|
||||
END(strchr)
|
||||
|
@ -117,3 +117,4 @@ L3: movzbl (%eax),%eax /* unsigned comparison */
|
||||
movzbl (%edx),%edx
|
||||
subl %edx,%eax
|
||||
ret
|
||||
END(strcmp)
|
||||
|
@ -87,3 +87,4 @@ L1: movb (%edx),%al /* unroll loop, but not too much */
|
||||
jne L1
|
||||
L2: popl %eax /* pop dst address */
|
||||
ret
|
||||
END(strcpy)
|
||||
|
@ -51,3 +51,4 @@ ENTRY(strlen)
|
||||
leal -1(%ecx),%eax /* and subtracting one */
|
||||
popl %edi
|
||||
ret
|
||||
END(strlen)
|
||||
|
@ -164,3 +164,4 @@ L3: movzbl (%eax),%eax /* unsigned comparison */
|
||||
L4: xorl %eax,%eax
|
||||
popl %ebx
|
||||
ret
|
||||
END(strncmp)
|
||||
|
@ -62,3 +62,4 @@ L2:
|
||||
jne L1
|
||||
popl %ebx
|
||||
ret
|
||||
END(strrchr)
|
||||
|
@ -97,3 +97,4 @@ L3: lodsw
|
||||
L4: popl %edi
|
||||
popl %esi
|
||||
ret
|
||||
END(swab)
|
||||
|
@ -74,3 +74,4 @@ found0: popl %ebx
|
||||
no: popl %ebx
|
||||
xorl %eax,%eax
|
||||
ret
|
||||
END(wcschr)
|
||||
|
@ -77,3 +77,4 @@ no0: subl (%esi),%eax
|
||||
popl %esi
|
||||
popl %edi
|
||||
ret
|
||||
END(wcscmp)
|
||||
|
@ -66,3 +66,4 @@ found2: incl %eax
|
||||
found1: incl %eax
|
||||
found0: popl %ebx
|
||||
ret
|
||||
END(wcslen)
|
||||
|
@ -103,3 +103,4 @@ no: xorl %eax,%eax
|
||||
popl %ebx
|
||||
popl %edi
|
||||
ret
|
||||
END(wmemchr)
|
||||
|
@ -52,3 +52,4 @@ ENTRY(__sys_vfork)
|
||||
pushl %ecx
|
||||
PIC_PROLOGUE
|
||||
jmp PIC_PLT(HIDENAME(cerror))
|
||||
END(__sys_vfork)
|
||||
|
@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
|
||||
.globl HIDENAME(minbrk)
|
||||
ENTRY(_brk)
|
||||
jmp ok
|
||||
END(_brk)
|
||||
|
||||
ENTRY(brk)
|
||||
#ifdef PIC
|
||||
@ -84,3 +85,4 @@ ok:
|
||||
err:
|
||||
jmp HIDENAME(cerror)
|
||||
#endif
|
||||
END(brk)
|
||||
|
@ -49,3 +49,4 @@ ENTRY(exect)
|
||||
KERNCALL
|
||||
PIC_PROLOGUE
|
||||
jmp PIC_PLT(HIDENAME(cerror)) /* exect(file, argv, env); */
|
||||
END(exect)
|
||||
|
@ -48,3 +48,4 @@ ENTRY(__sys_getcontext)
|
||||
1:
|
||||
PIC_PROLOGUE
|
||||
jmp PIC_PLT(HIDENAME(cerror))
|
||||
END(__sys_getcontext)
|
||||
|
@ -44,3 +44,4 @@ SYSCALL(pipe)
|
||||
movl %edx,4(%ecx)
|
||||
movl $0,%eax
|
||||
ret
|
||||
END(pipe)
|
||||
|
@ -55,3 +55,4 @@ ENTRY(ptrace)
|
||||
err:
|
||||
PIC_PROLOGUE
|
||||
jmp PIC_PLT(HIDENAME(cerror))
|
||||
END(ptrace)
|
||||
|
@ -40,3 +40,4 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
SYSCALL(reboot)
|
||||
iret
|
||||
END(reboot)
|
||||
|
@ -88,3 +88,4 @@ back:
|
||||
err:
|
||||
jmp HIDENAME(cerror)
|
||||
#endif /* PIC */
|
||||
END(sbrk)
|
||||
|
@ -52,3 +52,4 @@ SYSCALL(setlogin)
|
||||
movl $0,CNAME(_logname_valid)
|
||||
#endif
|
||||
ret /* setlogin(name) */
|
||||
END(setlogin)
|
||||
|
@ -50,3 +50,4 @@ ENTRY(syscall)
|
||||
1:
|
||||
PIC_PROLOGUE
|
||||
jmp PIC_PLT(HIDENAME(cerror))
|
||||
END(syscall)
|
||||
|
Loading…
Reference in New Issue
Block a user